函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-cgroup-rwstat.c Create Date:2022-07-27 19:16:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:lkg_rwstat_recursive_sum - collect hierarchical blkg_rwstat*@blkg: blkg of interest*@pol: blkcg_policy which contains the blkg_rwstat*@off: offset to the blkg_rwstat in blkg_policy_data or @blkg*@sum: blkg_rwstat_sample structure containing the results*

函数原型:void blkg_rwstat_recursive_sum(struct blkcg_gq *blkg, struct blkcg_policy *pol, int off, struct blkg_rwstat_sample *sum)

返回类型:void

参数:

类型参数名称
struct blkcg_gq *blkg
struct blkcg_policy *pol
intoff
struct blkg_rwstat_sample *sum
110  lockdep_assert_held( & queue_lock)
112  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
113  lkg_for_each_descendant_pre - pre-order walk of a blkg's descendants*@d_blkg: loop cursor pointing to the current descendant*@pos_css: used for iteration*@p_blkg: target blkg to walk descendants of* Walk @c_blkg through the descendants of @p_blkg(pos_blkg, pos_css, blkg)
116  如果非 is this blkg online? protected by both blkcg and q locks 则继续下一循环
119  如果polrwstat等于lkg_to_pdata - get policy private data*@blkg: blkg of interest*@pol: policy of interest* Return pointer to private data associated with the @blkg-@pol pair.off
121  否则rwstat等于pos_blkgoff
124 i小于BLKG_RWSTAT_NR循环cnt[i]等于blkg_rwstat_read_counter(rwstat, i)
127  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
调用者
名称描述
tg_prfill_rwstat_recursive