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:Returns true when we need to resched and can (barring IRQ state).

Proto:static __always_inline bool should_resched(int preempt_offset)

Type:bool

Parameter:

TypeParameterName
intpreempt_offset
102  Return Value for the false possibility is greater at compile time(raw_cpu_read_4(__preempt_count) == preempt_offset)
Caller
NameDescribe
_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