免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: ggzwtj
打印 上一主题 下一主题

关于address_space的一个问题 [复制链接]

论坛徽章:
1
拜羊年徽章
日期:2015-03-03 16:15:43
11 [报告]
发表于 2011-12-01 12:12 |只看该作者
本帖最后由 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

论坛徽章:
1
拜羊年徽章
日期:2015-03-03 16:15:43
12 [报告]
发表于 2011-12-01 13:12 |只看该作者
抱歉,zylthinking, 你是对的。
anonymous page最后map到struct address_space swapper_space
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP