函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Does the specified rcu_segcblist structure contain callbacks that* are still pending, that is, not yet ready to be invoked?

函数原型:bool rcu_segcblist_pend_cbs(struct rcu_segcblist *rsclp)

返回类型:bool

参数:

类型参数名称
struct rcu_segcblist *rsclp
205  返回:Is the specified rcu_segcblist enabled, for example, not corresponding* to an offline CPU?且非Are all segments following the specified segment of the specified* rcu_segcblist structure empty of callbacks? (The specified* segment might well contain 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_advance_cbsMove 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
rcu_segcblist_nextgpReturn false if there are no CBs awaiting grace periods, otherwise,* return true and store the nearest waited-upon grace period into *lp.
rcu_segcblist_extract_pend_cbsExtract only those callbacks still pending (not yet ready to be* invoked) from the specified rcu_segcblist structure and place them in* the specified rcu_cblist structure
srcu_might_be_idleIf SRCU is likely idle, return true, otherwise return false.* Note that it is OK for several current from-idle requests for a new* grace period from idle to specify expediting because they will all end* up requesting the same grace period anyhow