函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__ioc_clear_queue

函数原型:static void __ioc_clear_queue(struct list_head *icq_list)

返回类型:void

参数:

类型参数名称
struct list_head *icq_list
215  当非链表为空循环
216  icq等于list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(链表后项, structio_cq, q_node)
218  ioc等于ioc
220  spin_lock_irqsave( & 自旋锁, flags)
221  Release an icq. Called with ioc locked for blk-mq, and with both ioc* and queue locked for legacy.
222  spin_unlock_irqrestore( & 自旋锁, flags)
调用者
名称描述
ioc_clear_queue_clear_queue - break any ioc association with the specified queue*@q: request_queue being cleared* Walk @q->icq_list and exit all io_cq's.