Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mmap.c Create Date:2022-07-28 14:48:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Rough compatbility check to quickly see if it's even worth looking* at sharing an anon_vma

Proto:static int anon_vma_compatible(struct vm_area_struct *a, struct vm_area_struct *b)

Type:int

Parameter:

TypeParameterName
struct vm_area_struct *a
struct vm_area_struct *b
1221  Return 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). && Not ((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 )
Caller
NameDescribe
reusable_anon_vmaDo some basic sanity checking to see if we can re-use the anon_vma* from 'old'