函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:is_mergeable_anon_vma

函数原型:static inline int is_mergeable_anon_vma(struct anon_vma *anon_vma1, struct anon_vma *anon_vma2, struct vm_area_struct *vma)

返回类型:int

参数:

类型参数名称
struct anon_vma *anon_vma1
struct anon_vma *anon_vma2
struct vm_area_struct *vma
1016  如果非anon_vma1或非anon_vma2的值且非vma链表只有一项的值则返回:1
1019  返回:anon_vma1恒等于anon_vma2
调用者
名称描述
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