Function report |
Source Code:kernel\stop_machine.c |
Create Date:2022-07-28 11:21:16 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:stop_machine_from_inactive_cpu - stop_machine() from inactive CPU*@fn: the function to run*@data: the data ptr for the @fn()*@cpus: the cpus to run the @fn() on (NULL = any online cpu)* This is identical to stop_machine() but can be called from a CPU which
Proto:int stop_machine_from_inactive_cpu(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
cpu_stop_fn_t | fn | |
void * | data | |
const struct cpumask * | cpus |
669 | struct multi_stop_data msdata = {fn = fn, data = data, active_cpus = cpus} |
679 | When Not mutex_trylock - try to acquire the mutex, without waiting*@lock: the mutex to be acquired* Try to acquire the mutex atomically cycle |
680 | cpu_relax() |
683 | set_state( & msdata, MULTI_STOP_PREPARE) |
684 | cpu_stop_init_done( & done, num_active_cpus()) |
685 | queue_stop_cpus_work(cpu_active_mask, This is the cpu_stop function which stops the CPU. , & msdata, & done) |
691 | cpu_relax() |
694 | Return If ret Else collected return value |
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 |