函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:note_gp_changes

函数原型:static void note_gp_changes(struct rcu_data *rdp)

返回类型:void

参数:

类型参数名称
struct rcu_data *rdp
1441  local_irq_save(flags)
1442  rnp等于This CPU's leaf of hierarchy
1443  如果Track rsp->rcu_gp_seq counter. 恒等于Return the current value the update side's sequence number, no ordering. 且非此条件成立可能性小(为编译器优化)(READ_ONCE(Possible ->gp_seq wrap. ))或非raw_spin_trylock_rcu_node(rnp)则
1446  local_irq_restore(flags)
1447  返回
1449  needwake等于Update CPU-local rcu_data state to record the beginnings and ends of* grace periods. The caller must hold the ->lock of the leaf rcu_node* structure corresponding to the current CPU, and must have irqs disabled.
1450  raw_spin_unlock_irqrestore_rcu_node(rnp, flags)
1451  如果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
__call_rcu_coreHandle any core-RCU processing required by a call_rcu() invocation.