Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:synchronize_rcu - wait until a grace period has elapsed

Proto:void synchronize_rcu(void)

Type:void

Parameter:Nothing

2760  RCU_LOCKDEP_WARN(lock_is_held( & rcu_bh_lock_map) || lock_is_held( & rcu_lock_map) || lock_is_held( & rcu_sched_lock_map), "Illegal synchronize_rcu() in RCU read-side critical section")
2764  If During early boot, any blocking grace-period wait automatically* implies a grace period Then Return
2766  If Should normal grace-period primitives be expedited? Intended for* use within RCU. Note that this function takes the rcu_expedited* sysfs/boot variable and rcu_scheduler_active into account as well* as the rcu_expedite_gp() nesting Then synchronize_rcu_expedited - Brute-force RCU grace period* Wait for an RCU grace period, but expedite it
2768  Else wait_rcu_gp(all_rcu() - Queue an RCU callback for invocation after a grace period)
Caller
NameDescribe
rcu_test_sync_primsTest each non-SRCU synchronous grace-period wait API. This is* useful just after a change in mode for these primitives, and* during early boot.
rcu_sync_enter_sync_enter() - Force readers onto slowpath*@rsp: Pointer to rcu_sync structure to use for synchronization* This function is used by updaters who need readers to make use of* a slowpath during the update