| 函数逻辑报告 | 
| Source Code: kernel\stop_machine.c | Create Date:2022-07-27 12:23:40 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:queue @work to @stopper. if offline, @work is completed immediately
函数原型:static bool cpu_stop_queue_work(unsigned int cpu, struct cpu_stop_work *work)
返回类型:bool
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| unsigned int | cpu | |
| struct cpu_stop_work * | work | 
| 79 | stopper等于per_cpu(cpu_stopper, cpu) | 
| 84 | 禁止抢占() | 
| 85 | raw_spin_lock_irqsave( & lock, flags) | 
| 87 | 如果enabled则__cpu_stop_queue_work(stopper, work, & wakeq) | 
| 91 | raw_spin_unlock_irqrestore( & lock, flags) | 
| 94 | 禁用抢占和中断() | 
| 96 | 返回:enabled | 
| 名称 | 描述 | 
|---|---|
| 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 | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |