Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:part_stat_show

Proto:ssize_t part_stat_show(struct device *dev, struct device_attribute *attr, char *buf)

Type:ssize_t

Parameter:

TypeParameterName
struct device *dev
struct device_attribute *attr
char *buf
121  p = dev_to_part(dev)
122  q = queue
125  inflight = part_in_flight(q, p)
126  Return sprintf(buf, "%8lu %8lu %8llu %8u %8lu %8lu %8llu %8u %8u %8u %8u %8lu %8lu %8llu %8u %8lu %8u\n", part_stat_read(p, ios[STAT_READ]), part_stat_read(p, merges[STAT_READ]), (unsignedlonglong)part_stat_read(p, sectors[STAT_READ]), (unsignedint)part_stat_read_msecs(p, STAT_READ), part_stat_read(p, ios[STAT_WRITE]), part_stat_read(p, merges[STAT_WRITE]), (unsignedlonglong)part_stat_read(p, sectors[STAT_WRITE]), (unsignedint)part_stat_read_msecs(p, STAT_WRITE), inflight, Convert jiffies to milliseconds and back.* Avoid unnecessary multiplications/divisions in the* two most common HZ cases:, Convert jiffies to milliseconds and back.* Avoid unnecessary multiplications/divisions in the* two most common HZ cases:, part_stat_read(p, ios[STAT_DISCARD]), part_stat_read(p, merges[STAT_DISCARD]), (unsignedlonglong)part_stat_read(p, sectors[STAT_DISCARD]), (unsignedint)part_stat_read_msecs(p, STAT_DISCARD), part_stat_read(p, ios[STAT_FLUSH]), (unsignedint)part_stat_read_msecs(p, STAT_FLUSH))