Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\preempt.h Create Date:2022-07-28 05:35:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:preempt_count_set

Proto:static __always_inline void preempt_count_set(int pc)

Type:void

Parameter:

TypeParameterName
intpc
33  Do
34  old = raw_cpu_read_4(__preempt_count)
35  new = old & We use the MSB mostly because its available | pc & ~We use the MSB mostly because its available
37  When raw_cpu_cmpxchg_4(__preempt_count, old, new) != old cycle
Caller
NameDescribe
dotest
do_exit
__do_softirq
finish_task_switchsh_task_switch - clean up after a task-switch*@prev: the thread we just switched away from
schedule_debugVarious schedule()-time debugging checks and statistics:
call_timer_fn
do_one_initcall