函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\rcu.h Create Date:2022-07-27 11:17:52
Last Modify:2022-05-19 07:39:19 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:_seq_snap - Take a snapshot of the update side's sequence number.* This function returns the earliest value of the grace-period sequence number* that will indicate that a full grace period has elapsed since the current* time

函数原型:static inline unsigned long rcu_seq_snap(unsigned long *sp)

返回类型:unsigned long

参数:

类型参数名称
unsigned long *sp
91  s等于READ_ONCE( * sp)加2乘RCU_SEQ_STATE_MASK加1按位与RCU_SEQ_STATE_MASK的反
92  smp_mb()
93  返回:s
调用者
名称描述
srcu_gp_startStart an SRCU grace period.
__call_srcuEnqueue an SRCU callback on the srcu_data structure associated with* the current CPU and the specified srcu_struct structure, initiating* grace-period processing if it is not already running
srcu_barriersrcu_barrier - Wait until all in-flight call_srcu() callbacks complete.*@ssp: srcu_struct on which to wait for in-flight callbacks.
srcu_invoke_callbacks
rcu_accelerate_cbsIf there is room, assign a ->gp_seq number to any callbacks on this* CPU that have not already been assigned
rcu_accelerate_cbs_unlockedSimilar to rcu_accelerate_cbs(), but does not require that the leaf* rcu_node structure's ->lock be held
get_state_synchronize_rcuget_state_synchronize_rcu - Snapshot current RCU state* Returns a cookie that is used by a later call to cond_synchronize_rcu()* to determine whether or not a full grace period has elapsed in the* meantime.
rcu_barrier_barrier - Wait until all in-flight call_rcu() callbacks complete
rcu_exp_gp_seq_snapTake a snapshot of the expedited-grace-period counter.