函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\blkdev.h Create Date:2022-07-27 06:47:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:blk_rq_bytes

函数原型:static inline unsigned int blk_rq_bytes(const struct request *rq)

返回类型:unsigned int

参数:

类型参数名称
const struct request *rq
929  返回: total data len
调用者
名称描述
blk_dump_rq_flags
blk_insert_cloned_requestlk_insert_cloned_request - Helper for stacking drivers to submit a request*@q: the queue to submit the request*@rq: the request being queued
blk_rq_err_byteslk_rq_err_bytes - determine number of bytes till the next failure boundary*@rq: request to examine* Description:* A request could be merge of IOs which require different failure* handling
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
__blk_rq_prep_cloneCopy attributes of the original request to the clone request.* The actual data parts (e.g. ->cmd, ->sense) are not copied.
blk_rq_map_sgmap a request to scatterlist, return number of sg entries setup. Caller* must make sure sg can hold rq->nr_phys_segments entries
attempt_mergeFor non-mq, this has to be called with the request spinlock acquired.* For mq with scheduling, the appropriate queue wide lock should be held.
blk_mq_end_request
blk_mq_start_request
__blk_mq_requeue_request
blk_mq_make_request
bsg_map_buffer
blk_rq_sectors
blk_rq_payload_bytesSome commands like WRITE SAME have a payload or data transfer size which* is different from the size of the request. Any driver that supports such* commands using the RQF_SPECIAL_PAYLOAD flag needs to use this helper to* calculate the data transfer size.