*vm_prev;struct rb_node vm_rb;/* Second cache line starts here. */struct mm_struct*vm_mm;/* The address space we belong to. */pgprot_t vm_page_prot;/* Access permissions of this VMA. */unsigned long vm_flags;/*
#define VM_HUGEPAGE 0x20000000 #define VM_NOHUGEPAGE 0x40000000 #define VM_MERGEABLE 0x80000000 vm_start:虚拟地址区域的起始地址 vm_end:虚拟地址区域的结束地址 vm_next、vm_pre:VMA链表指针 vm_flags:VMA状态标志 vm_page_prot:VMA访问权限,代码段可读可执行蛋不可写,数据段可写可读不可执行 vm_mm:...
struct vm_area_struct *vm_next, *vm_prev; pgprot_t vm_page_prot; /* vma的访问权限 */ unsigned long vm_flags; /* 标识集 */ struct rb_node vm_rb; /* 红黑树中对应的节点 */ /* * For areas with an address space and backing store, * linkage into the address_space->i_mmap prio...
*/unsigned long rb_subtree_gap;/* Second cache line starts here. */struct mm_struct*vm_mm;/* The address space we belong to. */pgprot_t vm_page_prot;/* Access permissions of this VMA. */unsigned long vm_flags;/* Flags, see mm.h. *//* * For areas with an address space and ...
* get_unmapped_area find a free area of the right size.*/unsignedlongrb_subtree_gap;/*Second cache line starts here.*/structmm_struct *vm_mm;/*The address space we belong to.*/---指向VMA所属进程的struct mm_struct结构。pgprot_t vm_page_prot;/*Access permissions of this VMA.*/---...
struct mm_struct *vm_mm; /* The address space we belong to. */---指向VMA所属进程的struct mm_struct结构。 pgprot_t vm_page_prot; /* Access permissions of this VMA. */---VMA访问权限 unsigned long vm_flags; /* Flags, see mm.h. */---VMA标志位 /* * For areas with an address...
unsignedlong vm_start;/* vma的起始地址 */ unsignedlong vm_end;/* vma的结束地址 */ /* 该vma的在一个进程的vma链表中的前驱vma和后驱vma指针,链表中的vma都是按地址来排序的*/ struct vm_area_struct *vm_next, *vm_prev; pgprot_t vm_page_prot;/* vma的访问权限 */ ...
unsigned long vm_start; /* vma的起始地址 */ unsigned long vm_end; /* vma的结束地址 */ /* 该vma的在一个进程的vma链表中的前驱vma和后驱vma指针,链表中的vma都是按地址来排序的*/ struct vm_area_struct *vm_next, *vm_prev; pgprot_t vm_page_prot; /* vma的访问权限 */ ...
vm_area_struct->vm_flags为vma线性区层面的属性,属于软件层面,它将最终转换处理器页表项层面的标志,通过vm_get_page_prot可以完成这个转换,转换之后的页表项层面的标志一般保存到vm_area_struct->vm_page_prot 对于vma的权限属性与页表项的转换如下图: ...
{__rb_parent_color = 0xffff88dcc831ea18,rb_right = 0x0,rb_left = 0x0},rb_subtree_gap = 0x0,vm_mm = 0xffff88dea7232000,vm_page_prot = {pgprot = 0x25},vm_flags = 0x8040075,shared = {rb = {__rb_parent_color = 0x0,rb_right = 0x0,rb_left = 0x0},rb_subtree_last =...