函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\smp_processor_id.c Create Date:2022-07-27 07:51:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:check_preemption_disabled

函数原型:notrace static inline __attribute__((__always_inline__)) unsigned int check_preemption_disabled(const char *what1, const char *what2)

返回类型:unsigned int

参数:

类型参数名称
const char *what1
const char *what2
14  this_cpu等于These macros fold the SMP functionality into a single CPU system()
16  如果此条件成立可能性大(为编译器优化)(抢占计数值)则转到:out
19  如果已禁止中断()则转到:out
26  如果nr_cpus_allowed恒等于1则转到:out
32  如果Values used for system_state. Ordering of the states must not be changed* as code checks for <, <=, >, >= STATE.小于SYSTEM_SCHEDULING则转到:out
38  preempt_disable_notrace()
40  如果非printk_ratelimit()则转到:out_enable
43  printk(r conditions "BUG: using %s%s() in preemptible [%08x] code: %s/%d\n", what1, what2, 抢占计数值 - 1, comm, pid)
46  printk("caller is %pS\n", __builtin_return_address(0))
47  dump_stack()
49  out_enable :
50  preempt_enable_no_resched_notrace()
51  out :
52  返回:this_cpu
调用者
名称描述
debug_smp_processor_id
__this_cpu_preempt_check