函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:blk_mq_dispatch_wake

函数原型:static int blk_mq_dispatch_wake(wait_queue_entry_t *wait, unsigned mode, int flags, void *key)

返回类型:int

参数:

类型参数名称
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  加自旋锁
1059  如果非链表为空
1062  删除链表项并重新初始化
1063  sbq等于bitmap_tags
1064  atomic_dec( & @ws_active: count of currently active ws waitqueues)
1066  自旋锁解锁
1068  blk_mq_run_hw_queue(hctx, true)
1069  返回:1