函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:10_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

函数原型:static void t10_pi_type1_prepare(struct request *rq)

返回类型:void

参数:

类型参数名称
struct request *rq
134  tuple_sz等于tuple_size
135  ref_tag等于t10_pi_ref_tag(rq)
139  bip等于bio_integrity(bio)
140  virt等于bip_get_seed(bip)按位与0xffffffff
145  如果control flags 按位与BIP_MAPPED_INTEGRITY退出
148  bip_for_each_vec(iv, bip, iter)
152  pmap等于kmap_atomic(bv_page)
153  p等于pmapbv_offset
154 j小于bv_len循环
155  pi等于p
159  virt自加
160  ref_tag自加
161  p加等于tuple_sz
164  Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(pmap)
167  control flags 或等于BIP_MAPPED_INTEGRITY