Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Do a randomly selected number of extensions of an existing RCU read-side* critical section.

Proto:static struct rt_read_seg *rcutorture_loop_extend(int *readstate, struct torture_random_state *trsp, struct rt_read_seg *rtrsp)

Type:struct rt_read_seg

Parameter:

TypeParameterName
int *readstate
struct torture_random_state *trsp
struct rt_read_seg *rtrsp
1241  mask = Return the biggest extendables mask given current RCU and boot parameters.
1243  WARN_ON_ONCE(! * readstate)
1244  If Not ( mask - 1 & mask) Then Return rtrsp
1247  i = torture_random(trsp) >> 3
1248  i = ((i | i >> 3 ) & Maximum reader extensions. ) + 1
1249  When j < i cycle
1250  mask = Return a random protection state mask, but with at least one bit set.
1251  Do one extension of an RCU read-side critical section using the* current reader state in readstate (set to zero for initial entry* to extended critical section), set the new state as specified by* newstate (set to zero for final exit from extended
1253  Return rtrsp[j]
Caller
NameDescribe
rcu_torture_one_readDo one read-side critical section, returning false if there was* no data to read. Can be invoked both from process context and* from a timer handler.