函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\elevator.c Create Date:2022-07-27 18:32:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:elevator_get

函数原型:static struct elevator_type *elevator_get(struct request_queue *q, const char *name, bool try_loading)

返回类型:struct elevator_type

参数:

类型参数名称
struct request_queue *q
const char *name
booltry_loading
145  加自旋锁
147  e等于levator_find - Find an elevator*@name: Name of the elevator to find*@required_features: Features that the elevator must provide* Return the first registered scheduler with name @name and supporting the* features @required_features and NULL otherwise.
148  如果非etry_loading
149  自旋锁解锁
150  request_module("%s-iosched", name)
151  加自旋锁
152  e等于levator_find - Find an elevator*@name: Name of the elevator to find*@required_features: Features that the elevator must provide* Return the first registered scheduler with name @name and supporting the* features @required_features and NULL otherwise.
155  如果e且非判断模块是否处于活动状态e = NULL
158  自旋锁解锁
159  返回:e
调用者
名称描述
elevator_get_defaultFor single queue devices, default to using mq-deadline. If we have multiple* queues or mq-deadline is not available, default to "none".
__elevator_changeSwitch this queue to the given IO scheduler.