Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:part_in_flight_rw

Proto:void part_in_flight_rw(struct request_queue *q, struct hd_struct *part, unsigned int inflight[2])

Type:void

Parameter:

TypeParameterName
struct request_queue *q
struct hd_struct *part
unsigned intinflight
94  If queue_is_mq(q) Then
95  blk_mq_in_flight_rw(q, part, inflight)
96  Return
99  inflight[0] = 0
100  inflight[1] = 0
101  for_each_possible_cpu(cpu)
102  inflight[0] += part_stat_local_read_cpu(part, in_flight[0], cpu)
103  inflight[1] += part_stat_local_read_cpu(part, in_flight[1], cpu)
105  If inflight[0] < 0 Then inflight[0] = 0
107  If inflight[1] < 0 Then inflight[1] = 0
Caller
NameDescribe
part_inflight_show