Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\elevator.c Create Date:2022-07-28 16:57:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:levator_match - Test an elevator name and features*@e: Scheduler to test*@name: Elevator name to test*@required_features: Features that the elevator must provide* Return true is the elevator @e name matches @name and if @e provides all the

Proto:static bool elevator_match(const struct elevator_type *e, const char *name, unsigned int required_features)

Type:bool

Parameter:

TypeParameterName
const struct elevator_type *e
const char *name
unsigned intrequired_features
104  If Not elv_support_features(elevator_features, required_features) Then Return false
106  If Not strcmp(elevator_name, name) Then Return true
108  If elevator_alias && Not strcmp(elevator_alias, name) Then Return true
111  Return false
Caller
NameDescribe
elevator_findlevator_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.
__elevator_changeSwitch this queue to the given IO scheduler.
elv_iosched_show