Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\update.c Create Date:2022-07-28 10:17:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:_read_lock_held_common() - might we be in RCU-sched read-side critical section?*@ret: Best guess answer if lockdep cannot be relied on* Returns true if lockdep must be ignored, in which case *ret contains* the best guess described below

Proto:static bool rcu_read_lock_held_common(bool *ret)

Type:bool

Parameter:

TypeParameterName
bool *ret
101  If Not debug_lockdep_rcu_enabled() Then
102  ret = 1
103  Return true
105  If Not _is_watching - see if RCU thinks that the current CPU is not idle* Return true if RCU is watching the running CPU, which means that this* CPU can safely enter RCU read-side critical sections Then
106  ret = 0
107  Return true
109  If Not rcu_lockdep_current_cpu_online() Then
110  ret = 0
111  Return true
113  Return false
Caller
NameDescribe
rcu_read_lock_sched_held
rcu_read_lock_held_read_lock_held() - might we be in RCU read-side critical section?* If CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an RCU* read-side critical section
rcu_read_lock_bh_held_read_lock_bh_held() - might we be in RCU-bh read-side critical section?* Check for bottom half being disabled, which covers both the* CONFIG_PROVE_RCU and not cases
rcu_read_lock_any_held