Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lkcg_print_blkgs - helper for printing per-blkg data*@sf: seq_file to print to*@blkcg: blkcg of interest*@prfill: fill function to print out a blkg*@pol: policy in question*@data: data to be passed to @prfill*@show_total: to print out sum of prfill return

Proto:void blkcg_print_blkgs(struct seq_file *sf, struct blkcg *blkcg, u64 (*prfill)(struct seq_file *, struct blkg_policy_data *, int ), const struct blkcg_policy *pol, int data, bool show_total)

Type:void

Parameter:

TypeParameterName
struct seq_file *sf
struct blkcg *blkcg
u64 (*prfill
const struct blkcg_policy *pol
intdata
boolshow_total
528  total = 0
530  _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
532  spin_lock_irq( & queue_lock)
533  If blkcg_policy_enabled( Pointer to the associated request_queue , pol) Then total += prfill(sf, pd[plid], data)
535  spin_unlock_irq( & queue_lock)
537  _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()
539  If show_total Then seq_printf(sf, "Total %llu\n", (unsignedlonglong)total)
Caller
NameDescribe
tg_print_conf_u64
tg_print_conf_uint
tg_print_rwstat
tg_print_rwstat_recursive
tg_print_limit
iolatency_print_limit
ioc_weight_show
ioc_qos_show
ioc_cost_model_show