函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Some 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.

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

返回类型:unsigned int

参数:

类型参数名称
struct request *rq
974  如果rq_flags按位与Look at ->special_vec for the actual data payload instead of thebio chain. 则返回:bv_len
976  返回:blk_rq_bytes(rq)