Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq.c Create Date:2022-07-28 17:09:30
Last Modify:2020-03-17 23:18:05 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:blk_mq_dispatch_wake

Proto:static int blk_mq_dispatch_wake(wait_queue_entry_t *wait, unsigned mode, int flags, void *key)

Type:int

Parameter:

TypeParameterName
wait_queue_entry_t *wait
unsignedmode
intflags
void *key
1056  hctx = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(wait, structblk_mq_hw_ctx, dispatch_wait)
1058  spin_lock( & @dispatch_wait_lock: Lock for dispatch_wait queue. )
1059  If Not list_empty - tests whether a list is empty*@head: the list to test. Then
1062  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
1063  sbq = bitmap_tags
1064  atomic_dec( & @ws_active: count of currently active ws waitqueues)
1066  spin_unlock( & @dispatch_wait_lock: Lock for dispatch_wait queue. )
1068  blk_mq_run_hw_queue(hctx, true)
1069  Return 1