Function report |
Source Code:block\blk-merge.c |
Create Date:2022-07-28 17:05:58 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__blk_bios_map_sg
Proto:static int __blk_bios_map_sg(struct request_queue *q, struct bio *bio, struct scatterlist *sglist, struct scatterlist **sg)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct request_queue * | q | |
struct bio * | bio | |
struct scatterlist * | sglist | |
struct scatterlist ** | sg |
488 | nsegs = 0 |
489 | bool new_bio = false |
492 | rate over multi-page bvec (bvec, bio, iter) |
498 | If new_bio && ly try to merge bvecs into one sg if they are from two bios Then Go to next_bvec |
506 | next_bvec : |
507 | new_bio = false |
509 | If Value is more likely to compile time( residual I/O count ) Then |
515 | Return nsegs |
Name | Describe |
---|---|
blk_rq_map_sg | map a request to scatterlist, return number of sg entries setup. Caller* must make sure sg can hold rq->nr_phys_segments entries |
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 |