Skip to content

Commit d07e6d0

Browse files
committed
documentation: Update API documentation
This commit updates the list of RCU API members in whatisRCU.txt. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
1 parent b4c5bf3 commit d07e6d0

1 file changed

Lines changed: 44 additions & 11 deletions

File tree

‎Documentation/RCU/whatisRCU.txt‎

Lines changed: 44 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -326,11 +326,11 @@ used as follows:
326326
a. synchronize_rcu() rcu_read_lock() / rcu_read_unlock()
327327
call_rcu() rcu_dereference()
328328

329-
b. call_rcu_bh() rcu_read_lock_bh() / rcu_read_unlock_bh()
330-
rcu_dereference_bh()
329+
b. synchronize_rcu_bh() rcu_read_lock_bh() / rcu_read_unlock_bh()
330+
call_rcu_bh() rcu_dereference_bh()
331331

332332
c. synchronize_sched() rcu_read_lock_sched() / rcu_read_unlock_sched()
333-
preempt_disable() / preempt_enable()
333+
call_rcu_sched() preempt_disable() / preempt_enable()
334334
local_irq_save() / local_irq_restore()
335335
hardirq enter / hardirq exit
336336
NMI enter / NMI exit
@@ -794,10 +794,22 @@ in docbook. Here is the list, by category.
794794

795795
RCU list traversal:
796796

797+
list_entry_rcu
798+
list_first_entry_rcu
799+
list_next_rcu
797800
list_for_each_entry_rcu
801+
list_for_each_entry_continue_rcu
802+
hlist_first_rcu
803+
hlist_next_rcu
804+
hlist_pprev_rcu
798805
hlist_for_each_entry_rcu
806+
hlist_for_each_entry_rcu_bh
807+
hlist_for_each_entry_continue_rcu
808+
hlist_for_each_entry_continue_rcu_bh
809+
hlist_nulls_first_rcu
799810
hlist_nulls_for_each_entry_rcu
800-
list_for_each_entry_continue_rcu
811+
hlist_bl_first_rcu
812+
hlist_bl_for_each_entry_rcu
801813

802814
RCU pointer/list update:
803815

@@ -806,53 +818,74 @@ RCU pointer/list update:
806818
list_add_tail_rcu
807819
list_del_rcu
808820
list_replace_rcu
809-
hlist_del_rcu
810821
hlist_add_after_rcu
811822
hlist_add_before_rcu
812823
hlist_add_head_rcu
824+
hlist_del_rcu
825+
hlist_del_init_rcu
813826
hlist_replace_rcu
814827
list_splice_init_rcu()
828+
hlist_nulls_del_init_rcu
829+
hlist_nulls_del_rcu
830+
hlist_nulls_add_head_rcu
831+
hlist_bl_add_head_rcu
832+
hlist_bl_del_init_rcu
833+
hlist_bl_del_rcu
834+
hlist_bl_set_first_rcu
815835

816836
RCU: Critical sections Grace period Barrier
817837

818838
rcu_read_lock synchronize_net rcu_barrier
819839
rcu_read_unlock synchronize_rcu
820840
rcu_dereference synchronize_rcu_expedited
821-
call_rcu
822-
kfree_rcu
823-
841+
rcu_read_lock_held call_rcu
842+
rcu_dereference_check kfree_rcu
843+
rcu_dereference_protected
824844

825845
bh: Critical sections Grace period Barrier
826846

827847
rcu_read_lock_bh call_rcu_bh rcu_barrier_bh
828848
rcu_read_unlock_bh synchronize_rcu_bh
829849
rcu_dereference_bh synchronize_rcu_bh_expedited
830-
850+
rcu_dereference_bh_check
851+
rcu_dereference_bh_protected
852+
rcu_read_lock_bh_held
831853

832854
sched: Critical sections Grace period Barrier
833855

834856
rcu_read_lock_sched synchronize_sched rcu_barrier_sched
835857
rcu_read_unlock_sched call_rcu_sched
836858
[preempt_disable] synchronize_sched_expedited
837859
[and friends]
860+
rcu_read_lock_sched_notrace
861+
rcu_read_unlock_sched_notrace
838862
rcu_dereference_sched
863+
rcu_dereference_sched_check
864+
rcu_dereference_sched_protected
865+
rcu_read_lock_sched_held
839866

840867

841868
SRCU: Critical sections Grace period Barrier
842869

843870
srcu_read_lock synchronize_srcu srcu_barrier
844871
srcu_read_unlock call_srcu
845872
srcu_dereference synchronize_srcu_expedited
873+
srcu_dereference_check
874+
srcu_read_lock_held
846875

847876
SRCU: Initialization/cleanup
848877
init_srcu_struct
849878
cleanup_srcu_struct
850879

851880
All: lockdep-checked RCU-protected pointer access
852881

853-
rcu_dereference_check
854-
rcu_dereference_protected
882+
rcu_access_index
855883
rcu_access_pointer
884+
rcu_dereference_index_check
885+
rcu_dereference_raw
886+
rcu_lockdep_assert
887+
rcu_sleep_check
888+
RCU_NONIDLE
856889

857890
See the comment headers in the source code (or the docbook generated
858891
from them) for more information.

0 commit comments

Comments
 (0)