Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Do one round of quiescent-state forcing.

Proto:static void rcu_gp_fqs(bool first_time)

Type:void

Parameter:

TypeParameterName
boolfirst_time
1618  rnp = Return the root node of the rcu_state structure.
1620  WRITE_ONCE(Time of last GP kthread , jiffies)
1621  Number of calls to ++
1622  If first_time Then
1624  force_qs_rnp(Snapshot the specified CPU's dynticks counter so that we can later* credit them with an implicit quiescent state. Return 1 if this CPU* is in dynticks idle mode, which is an extended quiescent state.)
1625  Else
1627  force_qs_rnp(Return true if the specified CPU has passed through a quiescent* state by virtue of being in or having passed through an dynticks* idle state since the last call to dyntick_save_progress_counter()* for this same CPU, or by virtue of having been offline.)
1630  If READ_ONCE(Commands for GP task. ) & Need grace-period quiescent-state forcing. Then
1631  raw_spin_lock_irq_rcu_node(rnp)
1632  WRITE_ONCE(Commands for GP task. , READ_ONCE(Commands for GP task. ) & ~Need grace-period quiescent-state forcing. )
1634  raw_spin_unlock_irq_rcu_node(rnp)
Caller
NameDescribe
rcu_gp_fqs_loopLoop doing repeated quiescent-state forcing until the grace period ends.