函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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
注解内核,赢得工具下载SCCTEnglish

函数名称: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 intcpu
struct cpu_stop_work *work
79  stopper等于per_cpu(cpu_stopper, cpu)
84  禁止抢占()
85  raw_spin_lock_irqsave( & lock, flags)
86  enabled等于s this stopper enabled?
87  如果enabled__cpu_stop_queue_work(stopper, work, & wakeq)
89  否则如果donesignal completion unless @done is NULL
91  raw_spin_unlock_irqrestore( & lock, flags)
93  wake_up_q( & wakeq)
94  禁用抢占和中断()
96  返回:enabled
调用者
名称描述
stop_one_cpustop_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_nowaitstop_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