函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型: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)

返回类型:void

参数:

类型参数名称
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  如果blkcg_policy_enabled( Pointer to the associated request_queue , pol)则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  如果show_totalseq_printf(sf, "Total %llu\n", (unsignedlonglong)total)
调用者
名称描述
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