函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:part_in_flight

函数原型:unsigned int part_in_flight(struct request_queue *q, struct hd_struct *part)

返回类型:unsigned int

参数:

类型参数名称
struct request_queue *q
struct hd_struct *part
74  如果queue_is_mq(q)则
75  返回:blk_mq_in_flight(q, part)
78  inflight等于0
79  遍历可用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  如果inflight小于0则inflight等于0
86  返回:inflight
调用者
名称描述
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