Function report |
Source Code:block\blk-integrity.c |
Create Date:2022-07-28 18:02:55 |
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_count_integrity_sg - Count number of integrity scatterlist elements*@q: request queue*@bio: bio with integrity metadata attached* Description: Returns the number of elements required in a* scatterlist corresponding to the integrity metadata in a bio.
Proto:int blk_rq_count_integrity_sg(struct request_queue *q, struct bio *bio)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct request_queue * | q | |
struct bio * | bio |
30 | segments = 0 |
31 | seg_size = 0 |
33 | prev = 0 |
35 | bio_for_each_integrity_vec(iv, bio, iter) |
37 | If prev Then |
38 | If Not biovec_phys_mergeable(q, & ivprv, & iv) Then Go to new_segment |
40 | If seg_size + bv_len > queue_max_segment_size(q) Then Go to new_segment |
44 | Else |
50 | prev = 1 |
54 | Return segments |
Name | Describe |
---|---|
blk_integrity_merge_bio |
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 |