Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Wait 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.

Proto:static bool try_check_zero(struct srcu_struct *ssp, int idx, int trycount)

Type:bool

Parameter:

TypeParameterName
struct srcu_struct *ssp
intidx
inttrycount
700  cycle
701  If Return true if the number of pre-existing readers is determined to* be zero. Then Return true
703  If --trycount + Not Return grace-period delay, zero if there are expedited grace* periods pending, SRCU_INTERVAL otherwise. <= 0 Then Return false
705  0x10c7 is 2**32 / 1000000 (rounded up) (We use an adaptive strategy for synchronize_srcu() and especially for* synchronize_srcu_expedited(). We spin for a fixed time period* (defined below) to allow SRCU readers to exit their read-side critical* sections)
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.