Function report |
Source Code:block\elevator.c |
Create Date:2022-07-28 16:57:29 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:elevator_get
Proto:static struct elevator_type *elevator_get(struct request_queue *q, const char *name, bool try_loading)
Type:struct elevator_type
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct request_queue * | q | |
| const char * | name | |
| bool | try_loading |
| 145 | spin_lock( & elv_list_lock) |
| 148 | If Not e && try_loading Then |
| 149 | spin_unlock( & elv_list_lock) |
| 150 | try to load a kernel module("%s-iosched", name) |
| 151 | spin_lock( & elv_list_lock) |
| 155 | If e && Not try_module_get(elevator_owner) Then e = NULL |
| 158 | spin_unlock( & elv_list_lock) |
| 159 | Return e |
| Name | Describe |
|---|---|
| elevator_get_default | For single queue devices, default to using mq-deadline. If we have multiple* queues or mq-deadline is not available, default to "none". |
| __elevator_change | Switch this queue to the given IO scheduler. |
| 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 |