Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:part_in_flight

Proto:unsigned int part_in_flight(struct request_queue *q, struct hd_struct *part)

Type:unsigned int

Parameter:

TypeParameterName
struct request_queue *q
struct hd_struct *part
74  If queue_is_mq(q) Then
75  Return blk_mq_in_flight(q, part)
78  inflight = 0
79  for_each_possible_cpu(cpu)
80  inflight += part_stat_local_read_cpu(part, in_flight[0], cpu) + part_stat_local_read_cpu(part, in_flight[1], cpu)
83  If inflight < 0 Then inflight = 0
86  Return inflight
Caller
NameDescribe
diskstats_showaggregate disk stat collector. Uses the same stats that the sysfs* entries do, above, but makes them available through one seq_file.* The output looks suspiciously like /proc/partitions with a bunch of* extra fields.
part_stat_show