- 论坛徽章:
- 1
|
本帖最后由 linuxfellow 于 2011-12-01 12:38 编辑
怎么是不同概念呢?
address_space 就是所谓地址空间, 无论是 mapping的 file, 还是 mapping 的 swa ...
zylthinking 发表于 2011-12-01 12:05 ![]()
谢谢zylthinking
anonymous vma是没有链接到任何address_space,直接backed by swap space:
struct vm_area_struct {
struct mm_struct *vm_mm; // descriptor of VAS
unsigned long vm_start, vm_end; // of this region
pgprot_t vm_page_prot; // protection attributes for this region
short vm_avl_height;
struct vm_avl_left;
vm_area_struct *vm_avl_permission; // right hand child
vm_area_struct * vm_next_share, *vm_prev_share; // doubly linked
vm_operations_struct *vm_ops;
struct inode *vm_inode; // of file mapped, or NULL = “anonymous mapping”
unsigned long vm_offset; // offset in file/device
}
anonymous mapping: inode is NULL |
|