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:If the vma has a ->close operation then the driver probably needs to release* per-vma resources, so we don't attempt to merge those.

Proto:static inline int is_mergeable_vma(struct vm_area_struct *vma, struct file *file, unsigned long vm_flags, struct vm_userfaultfd_ctx vm_userfaultfd_ctx)

Type:int

Parameter:

TypeParameterName
struct vm_area_struct *vma
struct file *file
unsigned longvm_flags
struct vm_userfaultfd_ctxvm_userfaultfd_ctx
997  If (Flags, see mm.h. ^ vm_flags) & ~VM_SOFTDIRTY Then Return 0
999  If File we map to (can be NULL). != file Then Return 0
1001  If Function pointers to deal with this struct. && close Then Return 0
1003  If Not mm helpers Then Return 0
1005  Return 1
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)