函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Return grace-period delay, zero if there are expedited grace* periods pending, SRCU_INTERVAL otherwise.

函数原型:static unsigned long srcu_get_delay(struct srcu_struct *ssp)

返回类型:unsigned long

参数:

类型参数名称
struct srcu_struct *ssp
357  如果ULONG_CMP_LT(READ_ONCE(srcu_gp_seq), READ_ONCE(srcu_gp_seq_needed_exp))则返回:0
360  返回:SRCU_INTERVAL
调用者
名称描述
cleanup_srcu_structleanup_srcu_struct - deconstruct a sleep-RCU structure*@ssp: structure to clean up.* Must invoke this after you are finished using a given srcu_struct that* was initialized via init_srcu_struct(), else you leak memory.
srcu_gp_endNote the end of an SRCU grace period. Initiates callback invocation* and starts a new grace period if needed.* The ->srcu_cb_mutex acquisition does not protect any data, but* instead prevents more than one grace period from starting while we
srcu_funnel_gp_startFunnel-locking scheme to scalably mediate many concurrent grace-period* requests
try_check_zeroWait until all readers counted by array index idx complete, but* loop an additional time if there is an expedited grace period pending.* The caller must ensure that ->srcu_idx is not changed while checking.
process_srcu