Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:is_mergeable_anon_vma

Proto:static inline int is_mergeable_anon_vma(struct anon_vma *anon_vma1, struct anon_vma *anon_vma2, struct vm_area_struct *vma)

Type:int

Parameter:

TypeParameterName
struct anon_vma *anon_vma1
struct anon_vma *anon_vma2
struct vm_area_struct *vma
1016  If ( Not anon_vma1 || Not anon_vma2 ) && ( Not vma || list_is_singular - tests whether a list has just one entry.*@head: the list to test.) Then Return 1
1019  Return anon_vma1 == anon_vma2
Caller
NameDescribe
can_vma_merge_beforeReturn true if we can merge this (vm_flags,anon_vma,file,vm_pgoff)* in front of (at a lower virtual address and file offset than) the vma.* We cannot merge two vmas if they have differently assigned (non-NULL)
can_vma_merge_afterReturn true if we can merge this (vm_flags,anon_vma,file,vm_pgoff)* beyond (at a higher virtual address and file offset than) the vma.* We cannot merge two vmas if they have differently assigned (non-NULL)
vma_mergeGiven a mapping request (addr,end,vm_flags,file,pgoff), figure out* whether that can be merged with its predecessor or its successor