函数逻辑报告 |
Source Code:mm\mlock.c |
Create Date:2022-07-27 16:13:19 |
Last Modify:2022-05-23 14:12:58 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:mlock_fixup - handle mlock[all]/munlock[all] requests.* Filters out "special" vmas -- VM_LOCKED never gets set for these, and* munlock is a no-op. However, for some special vmas, we go ahead and* populate the ptes.
函数原型:static int mlock_fixup(struct vm_area_struct *vma, struct vm_area_struct **prev, unsigned long start, unsigned long end, vm_flags_t newflags)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct vm_area_struct * | vma | |
struct vm_area_struct ** | prev | |
unsigned long | start | |
unsigned long | end | |
vm_flags_t | newflags |
525 | ret等于0 |
535 | pgoff等于Offset (within vm_file) in PAGE_SIZEunits 加start减Our start address within vm_mm. 右移PAGE_SHIFT determines the page size 位的值 |
536 | prev等于vma_merge(mm, * prev, start, end, newflags, Serialized by page_table_lock , File we map to (can be NULL). , pgoff, vma_policy(vma), vm_userfaultfd_ctx) |
539 | 如果prev则 |
544 | 如果start不等于Our start address within vm_mm. 则 |
556 | success : |
573 | 如果lock则Flags, see mm.h. 等于newflags |
578 | out : |
580 | 返回:ret |
名称 | 描述 |
---|---|
apply_vma_lock_flags | |
apply_mlockall_flags | Take the MCL_* flags passed into mlockall (or 0 if called from munlockall)* and translate into the appropriate modifications to mm->def_flags and/or the* flags for all current VMAs.* There are a couple of subtleties with this |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |