函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Set the state portion of the pointed-to sequence number.* The caller is responsible for preventing conflicting updates.

函数原型:static inline void rcu_seq_set_state(unsigned long *sp, int newstate)

返回类型:void

参数:

类型参数名称
unsigned long *sp
intnewstate
50  WARN_ON_ONCE(newstate & ~RCU_SEQ_STATE_MASK)
51  WRITE_ONCE( * sp, ( * sp & ~RCU_SEQ_STATE_MASK) + newstate)
调用者
名称描述
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_advance_stateCore SRCU state machine. Push state bits of ->srcu_gp_seq* to SRCU_STATE_SCAN2, and invoke srcu_gp_end() when scan has* completed in that state.