Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-ioc.c Create Date:2022-07-28 17:04:21
Last Modify:2020-03-17 23:16:06 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__ioc_clear_queue

Proto:static void __ioc_clear_queue(struct list_head *icq_list)

Type:void

Parameter:

TypeParameterName
struct list_head *icq_list
215  When Not list_empty - tests whether a list is empty*@head: the list to test. cycle
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.(next, structio_cq, q_node)
218  ioc = ioc
220  spin_lock_irqsave( & all the fields below are protected by this lock , 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( & all the fields below are protected by this lock , flags)
Caller
NameDescribe
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.