函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Switch this queue to the given IO scheduler.

函数原型:static int __elevator_change(struct request_queue *q, const char *name)

返回类型:int

参数:

类型参数名称
struct request_queue *q
const char *name
736  如果非blk_queue_registered(q)则返回:负ENOENT
742  如果非字符串指定长度比较
743  如果非elevator则返回:0
745  返回: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  长字符串复制
749  e等于elevator_get(q, strstrip(elevator_name), true)
750  如果非e则返回:负EINVAL
753  如果elevatorlevator_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
755  elevator_put(e)
756  返回:0
759  返回: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
调用者
名称描述
elv_iosched_store