Function report | 
Source Code:kernel\stop_machine.c | 
Create Date:2022-07-28 11:20:57 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:This is the cpu_stop function which stops the CPU.
Proto:static int multi_cpu_stop(void *data)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| void * | data | 
| 190 | curstate = MULTI_STOP_NONE | 
| 191 | cpu = smp_processor_id() , err = 0 | 
| 200 | local_save_flags(flags) | 
| 202 | If Not active_cpus Then | 
| 203 | cpumask = cpu_online_mask | 
| 205 | Else | 
| 206 | cpumask = active_cpus | 
| 211 | Do | 
| 218 | Case curstate == MULTI_STOP_DISABLE_IRQ | 
| 219 | local_irq_disable() | 
| 221 | Break | 
| 222 | Case curstate == MULTI_STOP_RUN | 
| 226 | Default | 
| 227 | Break | 
| 230 | Else if curstate > MULTI_STOP_PREPARE Then | 
| 239 | When curstate != MULTI_STOP_EXIT cycle | 
| 241 | local_irq_restore(flags) | 
| 242 | Return err | 
| Name | Describe | 
|---|---|
| stop_machine_from_inactive_cpu | 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 | 
| 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  |