函数逻辑报告 |
Source Code:block\blk-core.c |
Create Date:2022-07-27 18:34:57 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:bio_attempt_discard_merge
函数原型:bool bio_attempt_discard_merge(struct request_queue *q, struct request *req, struct bio *bio)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct request_queue * | q | |
struct request * | req | |
struct bio * | bio |
651 | segments等于Number of discard segments (or ranges) the driver needs to fill in.* Each discard bio merged into a request is counted as one segment. |
653 | 如果segments大于等于queue_max_discard_segments(q)则转到:no_merge |
659 | rq_qos_merge(q, req, bio) |
661 | request queue link 等于bio |
663 | total data len 加等于 residual I/O count |
664 | * Number of scatter-gather DMA addr+len pairs after * physical address coalescing is performed.等于segments加1 |
666 | blk_account_io_start(req, false) |
667 | 返回:true |
668 | no_merge : |
669 | req_set_nomerge(q, req) |
670 | 返回:false |
名称 | 描述 |
---|---|
blk_attempt_plug_merge | lk_attempt_plug_merge - try to merge with %current's plugged list*@q: request_queue new bio is being queued at*@bio: new bio being queued*@nr_segs: number of segments in @bio*@same_queue_rq: pointer to &struct request that gets filled in when* another |
blk_mq_sched_try_merge | |
blk_mq_bio_list_merge | Iterate list of requests and see if we can merge this bio with any* of them. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |