Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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:

TypeParameterName
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
650  found = e
651  Break
655  If found && Not try_module_get(elevator_owner) Then found = NULL
658  spin_unlock( & elv_list_lock)
659  Return found
Caller
NameDescribe
elevator_init_mqFor 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