Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\blkdev.h Create Date:2022-07-28 05:46:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:static inline unsigned int blk_rq_payload_bytes(struct request *rq)

Type:unsigned int

Parameter:

TypeParameterName
struct request *rq
974  If rq_flags & Look at ->special_vec for the actual data payload instead of thebio chain. Then Return bv_len
976  Return blk_rq_bytes(rq)