fs/mmap/msync:support msync.

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>
This commit is contained in:
chenrun1
2024-05-29 11:47:01 +08:00
committed by Xiang Xiao
parent 484600bd75
commit d04205aa3d
10 changed files with 227 additions and 11 deletions
+1
View File
@@ -77,6 +77,7 @@
"mq_timedreceive","mqueue.h","!defined(CONFIG_DISABLE_MQUEUE)","ssize_t","mqd_t","FAR char *","size_t","FAR unsigned int *","FAR const struct timespec *"
"mq_timedsend","mqueue.h","!defined(CONFIG_DISABLE_MQUEUE)","int","mqd_t","FAR const char *","size_t","unsigned int","FAR const struct timespec *"
"mq_unlink","mqueue.h","!defined(CONFIG_DISABLE_MQUEUE)","int","FAR const char *"
"msync","sys/mman.h","","int","FAR void *","size_t","int"
"munmap","sys/mman.h","","int","FAR void *","size_t"
"nanosleep","time.h","","int","FAR const struct timespec *","FAR struct timespec *"
"nx_mkfifo","nuttx/fs/fs.h","defined(CONFIG_PIPES) && CONFIG_DEV_FIFO_SIZE > 0","int","FAR const char *","mode_t","size_t"
1 _assert assert.h void FAR const char * int FAR const char * FAR void *
77 mq_timedreceive mqueue.h !defined(CONFIG_DISABLE_MQUEUE) ssize_t mqd_t FAR char * size_t FAR unsigned int *
78 mq_timedsend mqueue.h !defined(CONFIG_DISABLE_MQUEUE) int mqd_t FAR const char * size_t unsigned int
79 mq_unlink mqueue.h !defined(CONFIG_DISABLE_MQUEUE) int FAR const char *
80 msync sys/mman.h int FAR void * size_t int
81 munmap sys/mman.h int FAR void * size_t
82 nanosleep time.h int FAR const struct timespec * FAR struct timespec *
83 nx_mkfifo nuttx/fs/fs.h defined(CONFIG_PIPES) && CONFIG_DEV_FIFO_SIZE > 0 int FAR const char * mode_t size_t