函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:blk_mq_get_dispatch_budget

函数原型:static inline bool blk_mq_get_dispatch_budget(struct blk_mq_hw_ctx *hctx)

返回类型:bool

参数:

类型参数名称
struct blk_mq_hw_ctx *hctx
192  q等于@queue: Pointer to the request queue that owns this hardware context.
194  如果get_budget则返回:get_budget(hctx)
196  返回:true
调用者
名称描述
blk_mq_dispatch_rq_listReturns true if we did some work AND can potentially do more.
__blk_mq_try_issue_directly
blk_mq_do_dispatch_schedOnly 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.
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.