函数逻辑报告 |
Source Code:block\elevator.c |
Create Date:2022-07-27 18:33:19 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:switch to new_e io scheduler. be careful not to introduce deadlocks -* we don't free the old io scheduler, before we have allocated what we* need for the new one. this way we have a chance of going back to the old
函数原型:static int elevator_switch(struct request_queue *q, struct elevator_type *new_e)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct request_queue * | q | |
| struct elevator_type * | new_e |
| 714 | lockdep_assert_held( & sysfs_lock) |
| 716 | blk_mq_freeze_queue(q) |
| 717 | blk_mq_quiesce_queue(q) |
| 719 | err等于elevator_switch_mq(q, new_e) |
| 721 | blk_mq_unquiesce_queue(q) |
| 722 | blk_mq_unfreeze_queue(q) |
| 724 | 返回:err |
| 名称 | 描述 |
|---|---|
| __elevator_change | Switch this queue to the given IO scheduler. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |