函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bio.c Create Date:2022-07-27 18:31:36
Last Modify:2020-03-17 23:13:58 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:generic_start_io_acct

函数原型:void generic_start_io_acct(struct request_queue *q, int op, unsigned long sectors, struct hd_struct *part)

返回类型:void

参数:

类型参数名称
struct request_queue *q
intop
unsigned longsectors
struct hd_struct *part
1774  sgrp等于op_stat_group(op)
1776  Macros to operate on percpu disk statistics:* {disk|part|all}_stat_{add|sub|inc|dec}() modify the stat counters* and should be called between disk_stat_lock() and* disk_stat_unlock()()
1778  update_io_ticks(part, jiffies)
1779  part_stat_inc(part, ios[sgrp])
1780  part_stat_add(part, sectors[sgrp], sectors)
1781  part_inc_in_flight(q, part, op_is_write(op))
1783  part_stat_unlock()