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_one_cpu

Proto:static inline int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg)

Type:int

Parameter:

TypeParameterName
unsigned intcpu
cpu_stop_fn_tfn
void *arg
53  ret = -ENOENT
54  Even if we don't have any preemption, we need preempt disable/enable* to be barriers, so that we don't have things like get_user/put_user* that can cause faults and scheduling migrate into our preempt-protected* region.()
55  If cpu == smp_processor_id() Then ret = fn(arg)
57  preempt_enable()
58  Return ret