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 <yfliu2008@qq.com>
This commit is contained in:
parent
0fae71f239
commit
7523654386
@ -44,7 +44,7 @@ struct task_group_s;
|
|||||||
|
|
||||||
struct mm_map_entry_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;
|
FAR void *vaddr;
|
||||||
size_t length;
|
size_t length;
|
||||||
off_t offset;
|
off_t offset;
|
||||||
@ -56,11 +56,11 @@ struct mm_map_entry_s
|
|||||||
int i;
|
int i;
|
||||||
} priv;
|
} priv;
|
||||||
|
|
||||||
/* Drivers which register mappings may also
|
/* Drivers which register mappings may also implement the unmap function
|
||||||
* implement the unmap function to undo anything done in mmap.
|
* to undo anything done in mmap.
|
||||||
* Nb. Implementation must NOT use "this_task()->group" since
|
* Nb. Implementation must NOT use "this_task()->group" since it is not
|
||||||
* this is not valid during process exit. The argument "group" will be
|
* valid during process exit. The argument "group" will be NULL in this
|
||||||
* NULL in this case.
|
* case.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int (*munmap)(FAR struct task_group_s *group,
|
int (*munmap)(FAR struct task_group_s *group,
|
||||||
@ -69,16 +69,15 @@ struct mm_map_entry_s
|
|||||||
size_t length);
|
size_t length);
|
||||||
};
|
};
|
||||||
|
|
||||||
/* A structure for the task group */
|
/* memory mapping structure for the task group */
|
||||||
|
|
||||||
struct mm_map_s
|
struct mm_map_s
|
||||||
{
|
{
|
||||||
sq_queue_t mm_map_sq;
|
sq_queue_t mm_map_sq; /* mappings list */
|
||||||
|
size_t map_count; /* mappings list length */
|
||||||
size_t map_count;
|
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_VMA_MAPPING
|
#ifdef CONFIG_ARCH_VMA_MAPPING
|
||||||
GRAN_HANDLE mm_map_vpages;
|
GRAN_HANDLE mm_map_vpages; /* SHM virtual zone allocator */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
rmutex_t mm_map_mutex;
|
rmutex_t mm_map_mutex;
|
||||||
|
Loading…
Reference in New Issue
Block a user