Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\rcu.h Create Date:2022-07-28 10:17:29
Last Modify:2022-05-19 07:39:19 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:static inline void rcu_seq_set_state(unsigned long *sp, int newstate)

Type:void

Parameter:

TypeParameterName
unsigned long *sp
intnewstate
50  WARN_ON_ONCE(newstate & ~RCU_SEQ_STATE_MASK)
51  WRITE_ONCE( * sp, ( * sp & ~RCU_SEQ_STATE_MASK) + newstate)
Caller
NameDescribe
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.