Function report |
Source Code:kernel\smp.c |
Create Date:2022-07-28 10:55:50 |
Last Modify:2020-03-17 15:12:54 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:int smp_call_function_single(int cpu, smp_call_func_t func, void *info, int wait)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
int | cpu | |
smp_call_func_t | func | |
void * | info | |
int | wait |
273 | call_single_data_t csd_stack = {flags = CSD_FLAG_LOCK | CSD_FLAG_SYNCHRONOUS, } |
300 | WARN_ON_ONCE(!in_task()) |
303 | If Not wait Then |
304 | csd = this_cpu_ptr( & csd_data) |
308 | err = Insert a previously allocated call_single_data_t element* for execution on the given CPU. data must already have* ->func, ->info, and ->flags set. |
313 | put_cpu() |
315 | Return err |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |