Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static void t10_pi_type1_complete(struct request *rq, unsigned int nr_bytes)

Type:void

Parameter:

TypeParameterName
struct request *rq
unsigned intnr_bytes
185  intervals = nr_bytes >> interval_exp
186  tuple_sz = tuple_size
187  ref_tag = t10_pi_ref_tag(rq)
191  bip = bio_integrity(bio)
192  virt = bip_get_seed(bip) & 0xffffffff
196  bip_for_each_vec(iv, bip, iter)
200  pmap = kmap_atomic(bv_page)
201  p = pmap + bv_offset
202  When j < bv_len && intervals cycle
203  pi = p
207  virt++
208  ref_tag++
209  intervals--
210  p += tuple_sz
213  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)