摘要: VMA和PAGE结构 和mmap函数(关键在最后)1.page 主要成员。。。//查源码2.vm_area_struct 主要成员。。。//查源码3.mmap用户空间调用与内核空间调用void *mmap(void *start,size_t length,int prot,int flags,int fd,off_t offset);//看man mmap内核空间调用int (*mmap) (struct file *filp, struct vm_area_struct *vma);4.mmap执行的顺序 a.在用户进程创建一个vma区域 b.驱动程序获得页 c.将获得的页分配给vma区域 阅读全文
posted @ 2012-03-07 17:12 Jack204 阅读(2432) 评论(0) 推荐(0) 编辑