函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smp_call_on_cpu

函数原型:int smp_call_on_cpu(unsigned int cpu, int (*func)(void *), void *par, bool phys)

返回类型:int

参数:

类型参数名称
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  如果cpu大于等于CPU数量或非cpu_online(cpu)则返回:负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  返回:ret