函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Insert a previously allocated call_single_data_t element* for execution on the given CPU. data must already have* ->func, ->info, and ->flags set.

函数原型:static int generic_exec_single(int cpu, call_single_data_t *csd, smp_call_func_t func, void *info)

返回类型:int

参数:

类型参数名称
intcpu
call_single_data_t *csd
smp_call_func_tfunc
void *info
145  如果cpu恒等于当前cpu ID()则
152  csd_unlock(csd)
153  local_irq_save(flags)
154  func(info)
155  local_irq_restore(flags)
156  返回:0
160  如果cpu大于等于nr_cpu_ids或非cpu_online(cpu)则
161  csd_unlock(csd)
162  返回:负ENXIO
165  func等于func
166  info等于info
179  如果添加列表项arch_send_call_function_single_ipi(cpu)
182  返回:0
调用者
名称描述
smp_call_function_singlesmp_call_function_single - Run a function on a specific CPU*@func: The function to run. This must be fast and non-blocking.*@info: An arbitrary pointer to pass to the function.*@wait: If true, wait until function has completed on other CPUs.
smp_call_function_single_asyncsmp_call_function_single_async(): Run an asynchronous function on a* specific CPU.*@cpu: The CPU to run on.*@csd: Pre-allocated and setup data structure* Like smp_call_function_single(), but the call is asynchonous and