函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:blk_mq_dequeue_from_ctx

函数原型:struct request *blk_mq_dequeue_from_ctx(struct blk_mq_hw_ctx *hctx, struct blk_mq_ctx *start)

返回类型:struct request

参数:

类型参数名称
struct blk_mq_hw_ctx *hctx
struct blk_mq_ctx *start
1002  off等于如果startindex_hw[@type: HCTX_TYPE_* flags. Type of hardware queue. ]否则0
1003  struct dispatch_rq_data data = {hctx = hctx, rq = NULL, }
1008  __sbitmap_for_each_set() - Iterate over each set bit in a &struct sbitmap
1011  返回:rq
调用者
名称描述
blk_mq_do_dispatch_ctxOnly SCSI implements .get_budget and .put_budget, and SCSI restarts* its queue by itself in its completion handler, so we don't need to* restart queue if .get_budget() returns BLK_STS_NO_RESOURCE.