函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mmap.c Create Date:2022-07-27 16:16:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Rough compatbility check to quickly see if it's even worth looking* at sharing an anon_vma

函数原型:static int anon_vma_compatible(struct vm_area_struct *a, struct vm_area_struct *b)

返回类型:int

参数:

类型参数名称
struct vm_area_struct *a
struct vm_area_struct *b
1221  返回:The first byte after our end addresswithin vm_mm. 恒等于Our start address within vm_mm. mpol_equal(vma_policy(a), vma_policy(b))且File we map to (can be NULL). 恒等于File we map to (can be NULL). 且非Flags, see mm.h. 按位异或Flags, see mm.h. 的值按位与currently active flags 按位或VM_WRITE按位或VM_EXEC按位或VM_SOFTDIRTY的值的反的值且Offset (within vm_file) in PAGE_SIZEunits 恒等于Offset (within vm_file) in PAGE_SIZEunits Our start address within vm_mm. Our start address within vm_mm. 右移PAGE_SHIFT determines the page size 位的值
调用者
名称描述
reusable_anon_vmaDo some basic sanity checking to see if we can re-use the anon_vma* from 'old'