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:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__blkg_prfill_rwstat - prfill helper for a blkg_rwstat*@sf: seq_file to print to*@pd: policy private data of interest*@rwstat: rwstat to print* Print @rwstat to @sf for the device assocaited with @pd.

Proto:u64 __blkg_prfill_rwstat(struct seq_file *sf, struct blkg_policy_data *pd, const struct blkg_rwstat_sample *rwstat)

Type:u64

Parameter:

TypeParameterName
struct seq_file *sf
struct blkg_policy_data *pd
const struct blkg_rwstat_sample *rwstat
45  static const char * rwstr[] = {[BLKG_RWSTAT_READ] = "Read", [BLKG_RWSTAT_WRITE] = "Write", [BLKG_RWSTAT_SYNC] = "Sync", [BLKG_RWSTAT_ASYNC] = "Async", [BLKG_RWSTAT_DISCARD] = "Discard", }
52  dname = blkg_dev_name(he blkg and policy id this per-policy data belongs to )
56  If Not dname Then Return 0
59  When i < BLKG_RWSTAT_NR cycle seq_printf(sf, "%s %s %llu\n", dname, rwstr[i], cnt[i])
63  v = cnt[BLKG_RWSTAT_READ] + cnt[BLKG_RWSTAT_WRITE] + cnt[BLKG_RWSTAT_DISCARD]
66  seq_printf(sf, "%s Total %llu\n", dname, v)
67  Return v
Caller
NameDescribe
blkg_prfill_rwstatlkg_prfill_rwstat - prfill callback for blkg_rwstat*@sf: seq_file to print to*@pd: policy private data of interest*@off: offset to the blkg_rwstat in @pd* prfill callback for printing a blkg_rwstat.
tg_prfill_rwstat_recursive