Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\stop_machine.h Create Date:2022-07-28 05:56:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:static inline int stop_machine_cpuslocked(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus)

Type:int

Parameter:

TypeParameterName
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  Return ret
Caller
NameDescribe
set_mtrr_cpuslocked