函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smp_call_function_any - Run a function on any of the given cpus*@mask: The mask of cpus it can run on.*@func: The function to run. This must be fast and non-blocking.*@info: An arbitrary pointer to pass to the function.

函数原型:int smp_call_function_any(const struct cpumask *mask, smp_call_func_t func, void *info, int wait)

返回类型:int

参数:

类型参数名称
const struct cpumask *mask
smp_call_func_tfunc
void *info
intwait
377  cpu等于get_cpu()
378  如果测试CPU信息则转到:call
382  nodemask等于Returns a pointer to the cpumask of CPUs on Node 'node'.
383 cpu小于nr_cpu_ids循环
385  如果cpu_online(cpu)则转到:call
390  cpu等于cpumask_any_and - pick a "random" cpu from *mask1 & *mask2*@mask1: the first input cpumask*@mask2: the second input cpumask* Returns >= nr_cpu_ids if no cpus set.(mask, cpu_online_mask)
391  call :
392  ret等于smp_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.
393  put_cpu()
394  返回:ret