Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Returns approximate total of the readers' ->srcu_lock_count[] values* for the rank of per-CPU counters specified by idx.

Proto:static unsigned long srcu_readers_lock_idx(struct srcu_struct *ssp, int idx)

Type:unsigned long

Parameter:

TypeParameterName
struct srcu_struct *ssp
intidx
250  sum = 0
252  for_each_possible_cpu(cpu)
253  cpuc = per_cpu_ptr(sda, cpu)
255  sum += READ_ONCE(srcu_lock_count[idx])
257  Return sum
Caller
NameDescribe
srcu_readers_active_idx_checkReturn true if the number of pre-existing readers is determined to* be zero.