函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\srcutree.c Create Date:2022-07-27 11:18:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Returns approximate total of the readers' ->srcu_unlock_count[] values* for the rank of per-CPU counters specified by idx.

函数原型:static unsigned long srcu_readers_unlock_idx(struct srcu_struct *ssp, int idx)

返回类型:unsigned long

参数:

类型参数名称
struct srcu_struct *ssp
intidx
267  sum等于0
269  遍历可用CPU(cpu)
270  cpuc等于per_cpu_ptr(sda, cpu)
272  sum加等于READ_ONCE(srcu_unlock_count[idx])
274  返回:sum
调用者
名称描述
srcu_readers_active_idx_checkReturn true if the number of pre-existing readers is determined to* be zero.