Skip to content

Conversation

@crafcat7
Copy link
Contributor

Summary

The msync API implemented base by #5997 and #8026.

Follow: https://man7.org/linux/man-pages/man2/msync.2.html

Impact

Support msync

Testing

Local test pass

gneworld and others added 5 commits August 20, 2024 15:09
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
Summary:
  1.Added msync callback in struct mm_map_entry_s
  2.Added msync API in fs_msync.c
  3.Added static msync_rammap for rammap.

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
Summary:
  In rammap:
   1.0 - User
   2.1 - Kernel
   3.2 - XIP
  Therefore we need to use 2 bits to represent the type

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
Summary:
  When restoring rammap fpos, we check the return value to avoid potential problems caused by no error return if the restore fails.

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
CC:  obstack/lib_obstack_printf.c "mmap/fs_rammap.c", line 126: warning apache#188-D: enumerated type mixed with
          another type
    enum mm_map_type_e type = (uintptr_t)entry->priv.p & 3;
                              ^
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
@crafcat7 crafcat7 closed this Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants