函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq.c Create Date:2022-07-27 18:47:23
Last Modify:2020-03-17 23:18:05 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Cache the elevator_type in qe pair list and switch the* io scheduler to 'none'

函数原型:static bool blk_mq_elv_switch_none(struct list_head *head, struct request_queue *q)

返回类型:bool

参数:

类型参数名称
struct list_head *head
struct request_queue *q
3186  如果非elevator则返回:true
3189  qe等于开辟内存
3190  如果非qe则返回:false
3193  初始化链表头
3194  q等于q
3195  type等于type
3196  添加链表项
3198  mutex_lock( & sysfs_lock)
3206  __module_get(elevator_owner)
3207  elevator_switch_mq(q, NULL)
3208  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
3210  返回:true
调用者
名称描述
__blk_mq_update_nr_hw_queues