函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\fork.c Create Date:2022-07-27 09:57:04
Last Modify:2020-03-17 11:04:53 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:vm_area_dup

函数原型:struct vm_area_struct *vm_area_dup(struct vm_area_struct *orig)

返回类型:struct vm_area_struct

参数:

类型参数名称
struct vm_area_struct *orig
359  new等于kmem_cache_alloc(SLAB cache for vm_area_struct structures , GFP_KERNEL)
361  如果new
362  new等于orig
363  初始化链表头
365  返回:new
调用者
名称描述
dup_mmap
__split_vma__split_vma() bypasses sysctl_max_map_count checking. We use this where it* has already been checked or doesn't make sense to fail.
copy_vmaCopy the vma structure to a new location in the same mm,* prior to moving page table entries, to effect an mremap move.
split_vmasplit a vma into two pieces at address 'addr', a new vma is allocated either* for the first part or the tail.