函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:t10_pi_ref_tag

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

返回类型:unsigned int

参数:

类型参数名称
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  如果interval_expshift等于interval_exp
48  返回: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 右移shiftThe 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
调用者
名称描述
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