Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:t10_pi_ref_tag

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

Type:unsigned int

Parameter:

TypeParameterName
struct request *rq
42  shift = log2 - log base 2 of 32-bit or a 64-bit unsigned value*@n: parameter* constant-capable log of base 2 calculation* - this can be used to initialise global variables from constant data, hence* the massive ternary operator construction* selects the (queue_logical_block_size(q))
45  If interval_exp Then shift = interval_exp
48  Return lk_rq_pos() : the current sector* blk_rq_bytes() : bytes left in the entire request* blk_rq_cur_bytes() : bytes left in the current segment* blk_rq_err_bytes() : bytes left till the next error boundary* blk_rq_sectors() : sectors left in the entire >> shift - The basic unit of block I/O is a sector. It is used in a number of contexts* in Linux (blk, bio, genhd). The size of one sector is 512 = 2**9* bytes. Variables of type sector_t represent an offset or size that is a* multiple of 512 bytes & 0xffffffff
Caller
NameDescribe
t10_pi_type1_prepare10_pi_type1_prepare - prepare PI prior submitting request to device*@rq: request with PI that should be prepared* For Type 1/Type 2, the virtual start sector is the one that was* originally submitted by the block layer for the ref_tag usage. Due to
t10_pi_type1_complete10_pi_type1_complete - prepare PI prior returning request to the blk layer*@rq: request with PI that should be prepared*@nr_bytes: total bytes to prepare* For Type 1/Type 2, the virtual start sector is the one that was