函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\stop_machine.c Create Date:2022-07-27 12:23:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:queue_stop_cpus_work

函数原型:static bool queue_stop_cpus_work(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg, struct cpu_stop_done *done)

返回类型:bool

参数:

类型参数名称
const struct cpumask *cpumask
cpu_stop_fn_tfn
void *arg
struct cpu_stop_done *done
380  bool queued = false
387  禁止抢占()
388  stop_cpus_in_progress = true
389  The "volatile" is due to gcc bugs ()
391  work等于per_cpu(stop_work, cpu)
392  fn等于fn
393  arg等于arg
394  done等于done
395  如果queue @work to @stopper. if offline, @work is completed immediately queued = true
398  The "volatile" is due to gcc bugs ()
399  stop_cpus_in_progress = false
400  禁用抢占和中断()
402  返回:queued
调用者
名称描述
__stop_cpus
stop_machine_from_inactive_cpustop_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