linux内核怎么判断地址合法,linux内核 address_space 结构

下面先看下address_space结构定义:

struct address_space {

struct inode           *host;

/* owner: inode, block_device拥有它的节点*/

struct radix_tree_root    page_tree;

/* radix tree of all pages包含全部页面的radix树*/

rwlock_t        tree_lock;

/* and rwlock protecting it保护page_tree的自旋锁*/

unsigned int           i_mmap_writable;/* count VM_SHARED mappings共享映射数VM_SHARED记数*/

struct prio_tree_root      i_mmap;

/* tree of private and shared mappings优先搜索树的树根*/

struct list_head       i_mmap_nonlinear;/*list VM_NONLINEAR mappings非线性映射的链表头*/

spinlock_t              i_mmap_lock;

/* protect tree, count, list保护i_mmap的自旋锁*/

unsigned int           truncate_count;

/* Cover race condition with truncate将文件截断的记数*/

unsigned long         nrpages;

/* number of total pages页总数*/

pgoff_t                  writeback_index;/* w

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值