Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kthread.c Create Date:2022-07-28 09:30:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kthread_create_on_cpu - Create a cpu bound kthread*@threadfn: the function to run until signal_pending(current).*@data: data ptr for @threadfn.*@cpu: The cpu on which the thread should be bound,*@namefmt: printf-style name for the thread

Proto:struct task_struct *kthread_create_on_cpu(int (*threadfn)(void *data), void *data, unsigned int cpu, const char *namefmt)

Type:struct task_struct

Parameter:

TypeParameterName
int (*threadfn
void *data
unsigned intcpu
const char *namefmt
453  p = kthread_create_on_node - create a kthread
455  If IS_ERR(p) Then Return p
457  kthread_bind - bind a just-created kthread to a cpu
459  Atomically set a bit in memory
460  cpu = cpu
461  Return p
Caller
NameDescribe
__smpboot_create_thread