Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static void t10_pi_type1_prepare(struct request *rq)

Type:void

Parameter:

TypeParameterName
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  If control flags & BIP_MAPPED_INTEGRITY Then Break
148  bip_for_each_vec(iv, bip, iter)
152  pmap = kmap_atomic(bv_page)
153  p = pmap + bv_offset
154  When j < bv_len cycle
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