Function report |
Source Code:kernel\stop_machine.c |
Create Date:2022-07-28 11:21:02 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:stop_two_cpus - stops two cpus*@cpu1: the cpu to stop*@cpu2: the other cpu to stop*@fn: function to execute*@arg: argument to @fn* Stops both the current and specified CPU and runs @fn on one of them.* returns when both are completed.
Proto:int stop_two_cpus(unsigned int cpu1, unsigned int cpu2, cpu_stop_fn_t fn, void *arg)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned int | cpu1 | |
| unsigned int | cpu2 | |
| cpu_stop_fn_t | fn | |
| void * | arg |
| 331 | work1 = work2 = (struct cpu_stop_work){fn = This is the cpu_stop function which stops the CPU. , arg = & msdata, work1 = & done} |
| 337 | cpu_stop_init_done( & done, 2) |
| 338 | set_state( & msdata, MULTI_STOP_PREPARE) |
| 340 | If cpu1 > cpu2 Then swap - swap values of @a and @b*@a: first value*@b: second value(cpu1, cpu2) |
| 346 | Return 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 |