函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:blk_mq_elv_switch_back

函数原型:static void blk_mq_elv_switch_back(struct list_head *head, struct request_queue *q)

返回类型:void

参数:

类型参数名称
struct list_head *head
struct request_queue *q
3217  struct elevator_type * t = NULL
3219  list_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(qe, head, node)
3220  如果q恒等于q
3221  t等于type
3222  退出
3225  如果非t则返回
3228  删除链表项
3229  释放内存
3231  mutex_lock( & sysfs_lock)
3232  elevator_switch_mq(q, t)
3233  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.
调用者
名称描述
__blk_mq_update_nr_hw_queues