Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
struct request * | rq | |
unsigned int | nr_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) |
205 | If be32_to_cpu(Target LBA or indirect LBA ) == ref_tag Then Target LBA or indirect LBA = cpu_to_be32(virt) |
207 | virt++ |
208 | ref_tag++ |
209 | intervals-- |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |