函数逻辑报告

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

函数名称:Returns true when we need to resched and can (barring IRQ state).

函数原型:static __always_inline bool should_resched(int preempt_offset)

返回类型:bool

参数:

类型参数名称
intpreempt_offset
102  返回:此条件成立可能性小(为编译器优化)(raw_cpu_read_4(__preempt_count) == preempt_offset)
调用者
名称描述
_cond_resched
__cond_resched_lock__cond_resched_lock() - if a reschedule is pending, drop the given lock,* call schedule, and on return reacquire the lock