Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Switch this queue to the given IO scheduler.

Proto:static int __elevator_change(struct request_queue *q, const char *name)

Type:int

Parameter:

TypeParameterName
struct request_queue *q
const char *name
736  If Not blk_queue_registered(q) Then Return -ENOENT
742  If Not strncmp(name, "none", 4) Then
743  If Not elevator Then Return 0
745  Return switch to new_e io scheduler. be careful not to introduce deadlocks -* we don't free the old io scheduler, before we have allocated what we* need for the new one. this way we have a chance of going back to the old
748  Copy a NUL terminated string into a sized buffer
749  e = elevator_get(q, strstrip(elevator_name), true)
750  If Not e Then Return -EINVAL
753  If elevator && 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 Then
755  elevator_put(e)
756  Return 0
759  Return switch to new_e io scheduler. be careful not to introduce deadlocks -* we don't free the old io scheduler, before we have allocated what we* need for the new one. this way we have a chance of going back to the old
Caller
NameDescribe
elv_iosched_store