Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Record a quiescent state for the specified CPU to that CPU's rcu_data* structure. This must be called from the specified CPU.

Proto:static void rcu_report_qs_rdp(int cpu, struct rcu_data *rdp)

Type:void

Parameter:

TypeParameterName
intcpu
struct rcu_data *rdp
1973  bool needwake = false
1974  offloaded = IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_RCU_NOCB_CPU) && Is the specified rcu_segcblist offloaded?
1978  rnp = This CPU's leaf of hierarchy
1979  raw_spin_lock_irqsave_rcu_node(rnp, flags)
1980  If norm || Track rsp->rcu_gp_seq counter. != Track rsp->rcu_gp_seq. || Possible ->gp_seq wrap. Then
1989  norm = true
1990  raw_spin_unlock_irqrestore_rcu_node(rnp, flags)
1991  Return
1993  mask = Mask to apply to leaf qsmask.
1994  If (CPUs or groups that need to switch in & mask) == 0 Then
1995  raw_spin_unlock_irqrestore_rcu_node(rnp, flags)
1996  Else
2001  If Not offloaded Then needwake = If there is room, assign a ->gp_seq number to any callbacks on this* CPU that have not already been assigned
2004  If any sort of urgency was applied to the current CPU (for example,* the scheduler-clock interrupt was enabled on a nohz_full CPU) in order* to get to a quiescent state, disable it.
2005  Similar to rcu_report_qs_rdp(), for which it is a helper function
2007  If needwake Then Awaken the grace-period kthread
Caller
NameDescribe
rcu_check_quiescent_stateCheck to see if there is a new grace period of which this CPU* is not yet aware, and if so, set up local rcu_data state for it.* Otherwise, see if this CPU has just passed through its first