Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\smp.c Create Date:2022-07-28 10:56:08
Last Modify:2020-03-17 15:12:54 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:smp_call_on_cpu

Proto:int smp_call_on_cpu(unsigned int cpu, int (*func)(void *), void *par, bool phys)

Type:int

Parameter:

TypeParameterName
unsigned intcpu
int (*func
void *par
boolphys
802  struct smp_call_on_cpu_struct sscs = {done = COMPLETION_INITIALIZER_ONSTACK(done), func = func, data = par, cpu = phys ? cpu : - 1, }
809  INIT_WORK_ONSTACK( & work, smp_call_on_cpu_callback)
811  If cpu >= Setup number of possible processor ids || Not cpu_online(cpu) Then Return -ENXIO
814  queue_work_on - queue work on specific cpu*@cpu: CPU number to execute work on*@wq: workqueue to use*@work: work to queue* We queue the work to a specific CPU, the caller must ensure it* can't go away.
815  wait_for_completion: - waits for completion of a task*@x: holds the state of this particular completion* This waits to be signaled for completion of a specific task. It is NOT* interruptible and there is no timeout.* See also similar routines (i
817  Return ret