Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\fork.c Create Date:2022-07-28 08:58:45
Last Modify:2020-03-17 11:04:53 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Create a kernel thread.

Proto:pid_t kernel_thread(int (*fn)(void *), void *arg, unsigned long flags)

Type:pid_t

Parameter:

TypeParameterName
int (*fn
void *arg
unsigned longflags
2501  struct kernel_clone_args args = {flags = ((flags | set if VM shared between processes | 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  Return fork routine
Caller
NameDescribe
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