1RCU_READ_LOCK_BH_HEL(9)          Driver Basics         RCU_READ_LOCK_BH_HEL(9)
2
3
4

NAME

6       rcu_read_lock_bh_held - might we be in RCU-bh read-side critical
7       section?
8

SYNOPSIS

10       int rcu_read_lock_bh_held(void);
11

ARGUMENTS

13       void
14           no arguments
15

DESCRIPTION

17       Check for bottom half being disabled, which covers both the
18       CONFIG_PROVE_RCU and not cases. Note that if someone uses
19       rcu_read_lock_bh, but then later enables BH, lockdep (if enabled) will
20       show the situation. This is useful for debug checks in functions that
21       require that they be called within an RCU read-side critical section.
22
23       Check debug_lockdep_rcu_enabled to prevent false positives during boot.
24
25       Note that rcu_read_lock is disallowed if the CPU is either idle or
26       offline from an RCU perspective, so check for those as well.
27
29Kernel Hackers Manual 3.10         June 2019           RCU_READ_LOCK_BH_HEL(9)
Impressum