函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Move any callbacks whose grace period has completed to the* RCU_DONE_TAIL sublist, then compact the remaining sublists and* assign ->gp_seq numbers to any callbacks in the RCU_NEXT_TAIL* sublist. This function is idempotent, so it does not hurt to

函数原型:static bool rcu_advance_cbs(struct rcu_node *rnp, struct rcu_data *rdp)

返回类型:bool

参数:

类型参数名称
struct rcu_node *rnp
struct rcu_data *rdp
1352  rcu_lockdep_assert_cblist_protected(rdp)
1353  raw_lockdep_assert_held_rcu_node(rnp)
1356  如果非Does the specified rcu_segcblist structure contain callbacks that* are still pending, that is, not yet ready to be invoked?则返回:false
1363  Advance the callbacks in the specified rcu_segcblist structure based* on the current value passed in for the grace-period counter.
1366  返回:If there is room, assign a ->gp_seq number to any callbacks on this* CPU that have not already been assigned
调用者
名称描述
rcu_advance_cbs_nowakeMove and classify callbacks, but only if doing so won't require* that the RCU grace-period kthread be awakened.
__note_gp_changesUpdate 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.