Function report |
Source Code:kernel\stop_machine.c |
Create Date:2022-07-28 11:20:53 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:queue @work to @stopper. if offline, @work is completed immediately
Proto:static bool cpu_stop_queue_work(unsigned int cpu, struct cpu_stop_work *work)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned int | cpu | |
| struct cpu_stop_work * | work |
| 79 | stopper = per_cpu(cpu_stopper, cpu) |
| 85 | raw_spin_lock_irqsave( & lock, flags) |
| 87 | If enabled Then __cpu_stop_queue_work(stopper, work, & wakeq) |
| 89 | Else if done Then signal completion unless @done is NULL |
| 91 | raw_spin_unlock_irqrestore( & lock, flags) |
| 94 | preempt_enable() |
| 96 | Return enabled |
| Name | Describe |
|---|---|
| stop_one_cpu | stop_one_cpu - stop a cpu*@cpu: cpu to stop*@fn: function to execute*@arg: argument to @fn* Execute @fn(@arg) on @cpu. @fn is run in a process context with* the highest priority preempting any task on the cpu and* monopolizing it |
| stop_one_cpu_nowait | stop_one_cpu_nowait - stop a cpu but don't wait for completion*@cpu: cpu to stop*@fn: function to execute*@arg: argument to @fn*@work_buf: pointer to cpu_stop_work structure* Similar to stop_one_cpu() but doesn't wait for completion |
| queue_stop_cpus_work |
| 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 |