Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Split a vma into two pieces at address 'addr', a new vma is allocated* either for the first part or the tail.

Proto:int split_vma(struct mm_struct *mm, struct vm_area_struct *vma, unsigned long addr, int new_below)

Type:int

Parameter:

TypeParameterName
struct mm_struct *mm
struct vm_area_struct *vma
unsigned longaddr
intnew_below
2701  If number of VMAs >= sysctl_max_map_count Then Return -ENOMEM
2704  Return __split_vma() bypasses sysctl_max_map_count checking. We use this where it* has already been checked or doesn't make sense to fail.
Caller
NameDescribe
mprotect_fixup
mbind_rangeStep 2: apply policy to a range and do splits.
userfaultfd_register
userfaultfd_unregister