函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Reset the ->expmaskinit values in the rcu_node tree to reflect any* recent CPU-online activity. Note that these masks are not cleared* when CPUs go offline, so they reflect the union of all CPUs that have* ever been online

函数原型:static void sync_exp_reset_tree_hotplug(void)

返回类型:void

参数:

77  ncpus等于smp_load_acquire( & # CPUs seen so far. )
82  如果此条件成立可能性大(为编译器优化)(ncpus == # CPUs seen last time. )则返回
84  # CPUs seen last time. 等于ncpus
91  raw_spin_lock_irqsave_rcu_node(rnp, flags)
92  如果 complete. 恒等于ginning of each expedited GP.
93  raw_spin_unlock_irqrestore_rcu_node(rnp, flags)
94  继续下一循环
98  oldmask等于 complete.
99  complete. 等于ginning of each expedited GP.
100  raw_spin_unlock_irqrestore_rcu_node(rnp, flags)
103  如果oldmask则继续下一循环
107  mask等于Mask to apply to parent qsmask.
108  rnp_up等于cu_node tree?
109  done = false
110 rnp_up循环
111  raw_spin_lock_irqsave_rcu_node(rnp_up, flags)
112  如果 complete. done = true
114  complete. 或等于mask
115  raw_spin_unlock_irqrestore_rcu_node(rnp_up, flags)
116  如果done退出
118  mask等于Mask to apply to parent qsmask.
119  rnp_up等于cu_node tree?
调用者
名称描述
sync_exp_reset_treeReset the ->expmask values in the rcu_node tree in preparation for* a new expedited grace period.