函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:复制内存

函数原型:static int copy_mm(unsigned long clone_flags, struct task_struct *tsk)

返回类型:int

参数:

类型参数名称
unsigned longclone_flags
struct task_struct *tsk
1387  换页信息等于换页信息等于0
1388  切换计数等于上下文切换计数等于0
1394  内存信息 = NULL
1395  活跃内存信息 = NULL
1402  oldmm等于mm
1403  如果非oldmm则返回:0
1407  vmacache_flush(tsk)
1409  如果clone_flags按位与共享虚拟内存
1410  mmget() - Pin the address space associated with a &struct mm_struct.*@mm: The address space to pin.* Make sure that the address space of the given &struct mm_struct doesn't* go away. This does not protect against parts of the address space being
1411  mm等于oldmm
1412  转到:good_mm
1415  retval等于负ENOMEM
1416  mm等于dup_mm() - duplicates an existing mm structure*@tsk: the task_struct with which the new mm will be associated.*@oldmm: the mm to duplicate.* Allocates a new mm structure and duplicates the provided @oldmm structure* content into it.
1417  如果非mm则转到:fail_nomem
1420  good_mm :
1421  内存信息等于mm
1422  活跃内存信息等于mm
1423  返回:0
1425  fail_nomem :
1426  返回:retval
调用者
名称描述
copy_process创建进程