Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\srcutree.c Create Date:2022-07-28 10:18:28
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_unlock_count[] values* for the rank of per-CPU counters specified by idx.

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

Type:unsigned long

Parameter:

TypeParameterName
struct srcu_struct *ssp
intidx
267  sum = 0
269  for_each_possible_cpu(cpu)
270  cpuc = per_cpu_ptr(sda, cpu)
272  sum += READ_ONCE(srcu_unlock_count[idx])
274  Return sum
Caller
NameDescribe
srcu_readers_active_idx_checkReturn true if the number of pre-existing readers is determined to* be zero.