函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\tree.c Create Date:2022-07-27 11:26:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:static void rcu_report_qs_rdp(int cpu, struct rcu_data *rdp)

返回类型:void

参数:

类型参数名称
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  如果normTrack rsp->rcu_gp_seq counter. 不等于Track rsp->rcu_gp_seq. Possible ->gp_seq wrap.
1989  norm = true
1990  raw_spin_unlock_irqrestore_rcu_node(rnp, flags)
1991  返回
1993  mask等于Mask to apply to leaf qsmask.
1994  如果CPUs or groups that need to switch in 按位与mask的值恒等于0则
1995  raw_spin_unlock_irqrestore_rcu_node(rnp, flags)
1996  否则
2001  如果非offloadedneedwake等于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  如果needwakeAwaken the grace-period kthread
调用者
名称描述
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