函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:blk_account_io_completion

函数原型:void blk_account_io_completion(struct request *req, unsigned int bytes)

返回类型:void

参数:

类型参数名称
struct request *req
unsigned intbytes
1316  如果partContribute to IO statistics IFF:* a) it's attached to a gendisk, and* b) the queue had IO stats enabled when this request was started
1317  sgrp等于op_stat_group(req_op(req))
1320  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()()
1321  part等于part
1322  part_stat_add(part, sectors[sgrp], bytes >> 9)
1323  part_stat_unlock()
调用者
名称描述
blk_update_requestlk_update_request - Special helper function for request stacking drivers*@req: the request being processed*@error: block status code*@nr_bytes: number of bytes to complete @req* Description:* Ends I/O on a number of bytes attached to @req, but doesn't