函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:创建内核线程

函数原型:pid_t kernel_thread(int (*fn)(void *), void *arg, unsigned long flags)

返回类型:pid_t

参数:

类型参数名称
int (*fn
void *arg
unsigned longflags
2501  struct kernel_clone_args args = {flags = ((flags | 共享虚拟内存 | set if the tracing process can't force CLONE_PTRACE on this clone ) & ~signal mask to be sent at exit ), exit_signal = (flags & signal mask to be sent at exit ), stack = (unsigned long)fn, stack_size = (unsigned long)arg, }
2508  返回:分裂进程
调用者
名称描述
call_usermodehelper_exec_syncHandles UMH_WAIT_PROC.
call_usermodehelper_exec_workWe need to create the usermodehelper kernel thread from a task that is affine* to an optimized set of CPUs (or nohz housekeeping ones) such that they* inherit a widest affinity irrespective of call_usermodehelper() callers with
create_kthread
rest_init剩余初始化