函数逻辑报告 |
Source Code:block\blk-core.c |
Create Date:2022-07-27 18:35:00 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:bool blk_attempt_plug_merge(struct request_queue *q, struct bio *bio, unsigned int nr_segs, struct request **same_queue_rq)
返回类型:bool
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct request_queue * | q | |
| struct bio * | bio | |
| unsigned int | nr_segs | |
| struct request ** | same_queue_rq |
| 703 | 如果非plug则返回:false |
| 706 | plug_list等于lk-mq requests |
| 709 | bool merged = false |
| 711 | 如果q恒等于q且same_queue_rq则 |
| 717 | same_queue_rq等于rq |
| 720 | 如果q不等于q或非blk_rq_merge_ok(rq, bio)则继续下一循环 |
| 724 | 当:blk_try_merge(rq, bio)恒等于ELEVATOR_BACK_MERGE |
| 727 | 当:blk_try_merge(rq, bio)恒等于ELEVATOR_FRONT_MERGE |
| 730 | 当:blk_try_merge(rq, bio)恒等于ELEVATOR_DISCARD_MERGE |
| 733 | 默认 |
| 734 | 退出 |
| 737 | 如果merged则返回:true |
| 741 | 返回:false |
| 名称 | 描述 |
|---|---|
| blk_mq_make_request |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |