Function report |
Source Code:block\blk-merge.c |
Create Date:2022-07-28 17:06:02 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:map a request to scatterlist, return number of sg entries setup. Caller* must make sure sg can hold rq->nr_phys_segments entries
Proto:int blk_rq_map_sg(struct request_queue *q, struct request *rq, struct scatterlist *sglist)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct request_queue * | q | |
struct request * | rq | |
struct scatterlist * | sglist |
525 | struct scatterlist * sg = NULL |
526 | nsegs = 0 |
528 | If rq_flags & Look at ->special_vec for the actual data payload instead of thebio chain. Then nsegs = __blk_bvec_map_sg(special_vec, sglist, & sg) |
530 | Else if bio && bio_op(bio) == REQ_OP_WRITE_SAME Then nsegs = __blk_bvec_map_sg(bio_iovec(bio), sglist, & sg) |
537 | pad_len = (dma_pad_mask & ~blk_rq_bytes(rq)) + 1 |
544 | If dma_drain_size && dma_drain_needed(rq) Then |
545 | If op_is_write(req_op(rq)) Then memset(dma_drain_buffer, 0, dma_drain_size) |
554 | nsegs++ |
567 | Return nsegs |
Name | Describe |
---|---|
bsg_map_buffer |
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 |