函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Allocate and initialize an mm_struct.

函数原型:struct mm_struct *mm_alloc(void)

返回类型:struct mm_struct

参数:

1066  mm等于allocate_mm()
1067  如果非mm则返回:NULL
1070  memset(mm, 0, mm的长度)
1071  返回:设置内核内存分配器
调用者
名称描述
bprm_mm_initCreate a new mm_struct and populate it with a temporary stack* vm_area_struct. We don't have enough context at this point to set the stack* flags, permissions, and offset, so we use temporary values. We'll update* them later in setup_arg_pages().