函数逻辑报告 |
Source Code:kernel\smp.c |
Create Date:2022-07-27 11:56:10 |
Last Modify:2020-03-17 15:12:54 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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_t | func | |
void * | info | |
int | wait |
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 : |
393 | put_cpu() |
394 | 返回:ret |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |