Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
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) |
157 | If be32_to_cpu(Target LBA or indirect LBA ) == virt Then Target LBA or indirect LBA = cpu_to_be32(ref_tag) |
159 | virt++ |
160 | ref_tag++ |
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 |