函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lk_mq_map_queue() - map (cmd_flags,type) to hardware queue*@q: request queue*@flags: request command flags*@cpu: cpu ctx

函数原型:static inline struct blk_mq_hw_ctx *blk_mq_map_queue(struct request_queue *q, unsigned int flags, struct blk_mq_ctx *ctx)

返回类型:struct blk_mq_hw_ctx

参数:

类型参数名称
struct request_queue *q
unsigned intflags
struct blk_mq_ctx *ctx
106  type等于HCTX_TYPE_DEFAULT
111  如果flags按位与REQ_HIPRItype等于HCTX_TYPE_POLL
113  否则如果flags按位与REQ_OP_MASK的值恒等于REQ_OP_READtype等于HCTX_TYPE_READ
116  返回:hctxs[type]
调用者
名称描述
blk_mq_get_request
blk_mq_get_tag
__blk_mq_sched_bio_merge
blk_get_flush_queue