Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\srcutree.c Create Date:2022-07-28 10:18:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Increment the ->srcu_idx counter so that future SRCU readers will* use the other rank of the ->srcu_(un)lock_count[] arrays. This allows* us to wait for pre-existing readers in a starvation-free manner.

Proto:static void srcu_flip(struct srcu_struct *ssp)

Type:void

Parameter:

TypeParameterName
struct srcu_struct *ssp
724  smp_mb()
726  WRITE_ONCE( Current reader array element. , Current reader array element. + 1)
735  smp_mb()
Caller
NameDescribe
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.