函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:stop_machine "Bogolock": stop the entire machine, disable* interrupts. This is a very heavy lock, which is equivalent to* grabbing every spinlock (and more). So the "read" side to such a* lock is anything which disables preemption.

函数原型:static inline int stop_machine_cpuslocked(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus)

返回类型:int

参数:

类型参数名称
cpu_stop_fn_tfn
void *data
const struct cpumask *cpus
147  local_irq_save(flags)
148  ret等于fn(data)
149  local_irq_restore(flags)
150  返回:ret
调用者
名称描述
set_mtrr_cpuslocked
stop_machine
microcode_reload_lateReload microcode late on all CPUs. Wait for a sec until they* all gather together.