函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:alloc_thread_stack_node

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

返回类型:unsigned long

参数:

类型参数名称
struct task_struct *tsk
intnode
260  page等于Allocate pages, preferring the node given as nid. When nid == NUMA_NO_NODE,* prefer the current CPU's closest node. Otherwise node must be valid and* online.
263  如果此条件成立可能性大(为编译器优化)(page)则
264  栈指针等于page_address(page)
265  返回:栈指针
267  返回:NULL
调用者
名称描述
dup_task_struct复制进程并设置栈