Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+4
+4
Documentation/RCU/lockdep.rst
··· 17 17 rcu_read_lock_held() for normal RCU. 18 18 rcu_read_lock_bh_held() for RCU-bh. 19 19 rcu_read_lock_sched_held() for RCU-sched. 20 + rcu_read_lock_any_held() for any of normal RCU, RCU-bh, and RCU-sched. 20 21 srcu_read_lock_held() for SRCU. 22 + rcu_read_lock_trace_held() for RCU Tasks Trace. 21 23 22 24 These functions are conservative, and will therefore return 1 if they 23 25 aren't certain (for example, if CONFIG_DEBUG_LOCK_ALLOC is not set). ··· 55 53 is invoked by both SRCU readers and updaters. 56 54 rcu_dereference_raw(p): 57 55 Don't check. (Use sparingly, if at all.) 56 + rcu_dereference_raw_check(p): 57 + Don't do lockdep at all. (Use sparingly, if at all.) 58 58 rcu_dereference_protected(p, c): 59 59 Use explicit check expression "c", and omit all barriers 60 60 and compiler constraints. This is useful when the data