Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
struct request_queue *q
const char *name
booltry_loading
145  spin_lock( & elv_list_lock)
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  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)
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  If e && Not try_module_get(elevator_owner) Then e = NULL
158  spin_unlock( & elv_list_lock)
159  Return e
Caller
NameDescribe
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.