diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2022-10-18 18:33:59 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2022-10-20 21:57:46 +0300 |
commit | 2c3cdf5a8e06723b6ec76f04534fe1a33dd1a6d8 (patch) | |
tree | e03f65de020d93af24a68e7f497917683df44a95 /Documentation/RCU/lockdep.rst | |
parent | 06e6d1d6fdc0a7ae48e24f586632ee950249a935 (diff) | |
download | linux-2c3cdf5a8e06723b6ec76f04534fe1a33dd1a6d8.tar.xz |
doc: Update RCU's lockdep.rst
This commit adds a couple of new functions to the documentation.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'Documentation/RCU/lockdep.rst')
-rw-r--r-- | Documentation/RCU/lockdep.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/RCU/lockdep.rst b/Documentation/RCU/lockdep.rst index a94f55991a71..9308f1bdba05 100644 --- a/Documentation/RCU/lockdep.rst +++ b/Documentation/RCU/lockdep.rst @@ -17,7 +17,9 @@ state:: rcu_read_lock_held() for normal RCU. rcu_read_lock_bh_held() for RCU-bh. rcu_read_lock_sched_held() for RCU-sched. + rcu_read_lock_any_held() for any of normal RCU, RCU-bh, and RCU-sched. srcu_read_lock_held() for SRCU. + rcu_read_lock_trace_held() for RCU Tasks Trace. These functions are conservative, and will therefore return 1 if they aren't certain (for example, if CONFIG_DEBUG_LOCK_ALLOC is not set). @@ -53,6 +55,8 @@ checking of rcu_dereference() primitives: is invoked by both SRCU readers and updaters. rcu_dereference_raw(p): Don't check. (Use sparingly, if at all.) + rcu_dereference_raw_check(p): + Don't do lockdep at all. (Use sparingly, if at all.) rcu_dereference_protected(p, c): Use explicit check expression "c", and omit all barriers and compiler constraints. This is useful when the data |