函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:int split_vma(struct mm_struct *mm, struct vm_area_struct *vma, unsigned long addr, int new_below)

返回类型:int

参数:

类型参数名称
struct mm_struct *mm
struct vm_area_struct *vma
unsigned longaddr
intnew_below
2701  如果 number of VMAs 大于等于sysctl_max_map_count则返回:负ENOMEM
2704  返回:__split_vma() bypasses sysctl_max_map_count checking. We use this where it* has already been checked or doesn't make sense to fail.
调用者
名称描述
mprotect_fixup
mbind_rangeStep 2: apply policy to a range and do splits.
userfaultfd_register
userfaultfd_unregister