2023年linux内核学习笔记-structvm_area_struct.pdf
《2023年linux内核学习笔记-structvm_area_struct.pdf》由会员分享,可在线阅读,更多相关《2023年linux内核学习笔记-structvm_area_struct.pdf(2页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、学习必备 欢迎下载 Linux 内核中,关于虚存管理的最基本的管理单元应该是 struct vm_area_struct了,它描述的是一段连续的、具有相同访问属性的虚存空间,该虚存空间的大小为物理内存页面的整数倍。下面是 struct vm_area_struct结构体的定义:QUOTE:/*This struct defines a memory VMM memory area.There is one of these*per VM-area/task.A VM area is any part of the process virtual memory*space that has a
2、special rule for the page-fault handlers(ie a shared*library,the executable area etc).*/struct vm_area_struct struct mm_struct*vm_mm;/*VM area parameters*/unsigned long vm_start;unsigned long vm_end;/*linked list of VM areas per task,sorted by address*/struct vm_area_struct*vm_next;pgprot_t vm_page_
3、prot;unsigned long vm_flags;/*AVL tree of VM areas per task,sorted by address*/short vm_avl_height;struct vm_area_struct*vm_avl_left;struct vm_area_struct*vm_avl_right;/*For areas with an address space and backing store,*one of the address_space-i_mmap,shared lists,*for shm areas,the list of attache
4、s,otherwise unused.*/struct vm_area_struct*vm_next_share;struct vm_area_struct*vm_pprev_share;struct vm_operations_struct*vm_ops;unsigned long vm_pgoff;/*offset in PAGE_SIZE units,*not*PAGE_CACHE_SIZE*/struct file*vm_file;unsigned long vm_raend;void*vm_private_data;/*was vm_pte(shared mem)*/;学习必备 欢迎
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 2023 linux 内核 学习 笔记 structvm_area_struct
限制150内