From 7523654386ef95cb83f0161d1671a035272ea45a Mon Sep 17 00:00:00 2001 From: Yanfeng Liu Date: Wed, 3 Apr 2024 12:09:33 +0800 Subject: [PATCH] mm/map.h: minor revision on comments and field defs This patch uses "struct mm_map_entry_s" instead of the non-existing "struct mm_map_entry" with minor revision on comments. Signed-off-by: Yanfeng Liu --- include/nuttx/mm/map.h | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/include/nuttx/mm/map.h b/include/nuttx/mm/map.h index f447d943f3..3879056eb3 100644 --- a/include/nuttx/mm/map.h +++ b/include/nuttx/mm/map.h @@ -44,7 +44,7 @@ struct task_group_s; struct mm_map_entry_s { - FAR struct mm_map_entry *flink; /* this is used as sq_entry_t */ + FAR struct mm_map_entry_s *flink; /* this is used as sq_entry_t */ FAR void *vaddr; size_t length; off_t offset; @@ -56,11 +56,11 @@ struct mm_map_entry_s int i; } priv; - /* Drivers which register mappings may also - * implement the unmap function to undo anything done in mmap. - * Nb. Implementation must NOT use "this_task()->group" since - * this is not valid during process exit. The argument "group" will be - * NULL in this case. + /* Drivers which register mappings may also implement the unmap function + * to undo anything done in mmap. + * Nb. Implementation must NOT use "this_task()->group" since it is not + * valid during process exit. The argument "group" will be NULL in this + * case. */ int (*munmap)(FAR struct task_group_s *group, @@ -69,16 +69,15 @@ struct mm_map_entry_s size_t length); }; -/* A structure for the task group */ +/* memory mapping structure for the task group */ struct mm_map_s { - sq_queue_t mm_map_sq; - - size_t map_count; + sq_queue_t mm_map_sq; /* mappings list */ + size_t map_count; /* mappings list length */ #ifdef CONFIG_ARCH_VMA_MAPPING - GRAN_HANDLE mm_map_vpages; + GRAN_HANDLE mm_map_vpages; /* SHM virtual zone allocator */ #endif rmutex_t mm_map_mutex;