函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:blk_mq_next_ctx

函数原型:static struct blk_mq_ctx *blk_mq_next_ctx(struct blk_mq_hw_ctx *hctx, struct blk_mq_ctx *ctx)

返回类型:struct blk_mq_ctx

参数:

类型参数名称
struct blk_mq_hw_ctx *hctx
struct blk_mq_ctx *ctx
121  idx等于index_hw[@type: HCTX_TYPE_* flags. Type of hardware queue. ]
123  如果idx先自加恒等于@nr_ctx: Number of software queues. idx等于0
126  返回:@ctxs: Array of software queues. [idx]
调用者
名称描述
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.