函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:设置抢占计数

函数原型:static __always_inline void preempt_count_set(int pc)

返回类型:void

参数:

类型参数名称
intpc
33  循环
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 raw_cpu_cmpxchg_4(__preempt_count, old, new)不等于old循环
调用者
名称描述
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_debug调试检查和统计
call_timer_fn
do_one_initcall