Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-cgroup-rwstat.c Create Date:2022-07-28 17:41:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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*

Proto:void blkg_rwstat_recursive_sum(struct blkcg_gq *blkg, struct blkcg_policy *pol, int off, struct blkg_rwstat_sample *sum)

Type:void

Parameter:

TypeParameterName
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  If Not is this blkg online? protected by both blkcg and q locks Then Continue
119  If pol Then rwstat = 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  Else rwstat = pos_blkg + off
124  When i < BLKG_RWSTAT_NR cycle 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()
Caller
NameDescribe
tg_prfill_rwstat_recursive