linux - 如何从 mm_strucnt 和缓冲区中找到正确的 vm_area_struct
问题描述
所以在 mm_strucnt 中有 vm_areas 的列表,
struct vm_area_struct *mmap_cache;
我想找到一个包含我的缓冲区的函数,例如将获取 sturc_mm 并返回包含我的缓冲区的 vm_area
get_vmArea(userbuffer,current->mm)
是否有任何功能可以为我做,所以我不必寻找所有的 vm_area 直到我找到包含 rang 的那个,其中包括我的地址
解决方案
可以使用这个功能
struct vm_area_struct *find_vma(struct mm_struct *mm, unsigned long addr)
推荐阅读
- react-admin - react-admin ImageField 高度/宽度
- python - numpy 识别的特殊方法的文档位置
- reactjs - 如何在phoenix api中处理来自react frontedn的参数?
- javascript - 添加到ngrx商店时的rxjs无限循环
- dynamics-crm - 在视图中显示相关字段
- visual-studio - Microsoft Visual Studio 2017 未打开。[错误:800703f1]
- mysql - ActiveRecord 查询返回空的 AssociationRelation
- angular - Angular 或 Typescript 奇怪的行为
- json-schema-validator - 具有特定属性的 ref 中的 Json 模式验证
- javascript - 插座房间没有像他们想象的那样工作