Function report |
Source Code:block\elevator.c |
Create Date:2022-07-28 16:58:04 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Get the first elevator providing the features required by the request queue.* Default to "none" if no matching elevator is found.
Proto:static struct elevator_type *elevator_get_by_features(struct request_queue *q)
Type:struct elevator_type
Parameter:
Type | Parameter | Name |
---|---|---|
struct request_queue * | q |
643 | struct elevator_type * e, * found = NULL |
645 | spin_lock( & elv_list_lock) |
648 | If elv_support_features(elevator_features, required_elevator_features) Then |
655 | If found && Not try_module_get(elevator_owner) Then found = NULL |
658 | spin_unlock( & elv_list_lock) |
659 | Return found |
Name | Describe |
---|---|
elevator_init_mq | For a device queue that has no required features, use the default elevator* settings. Otherwise, use the first elevator available matching the required* features. If no suitable elevator is find or if the chosen elevator |
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 |