Function report |
Source Code:block\blk-integrity.c |
Create Date:2022-07-28 18:02:58 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:lk_rq_map_integrity_sg - Map integrity metadata into a scatterlist*@q: request queue*@bio: bio with integrity metadata attached*@sglist: target scatterlist* Description: Map the integrity vectors in request into a* scatterlist
Proto:int blk_rq_map_integrity_sg(struct request_queue *q, struct bio *bio, struct scatterlist *sglist)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct request_queue * | q | |
struct bio * | bio | |
struct scatterlist * | sglist |
72 | struct scatterlist * sg = NULL |
73 | segments = 0 |
75 | prev = 0 |
77 | bio_for_each_integrity_vec(iv, bio, iter) |
79 | If prev Then |
80 | If Not biovec_phys_mergeable(q, & ivprv, & iv) Then Go to new_segment |
82 | If length + bv_len > queue_max_segment_size(q) Then Go to new_segment |
86 | Else |
99 | prev = 1 |
106 | Return segments |
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 |