Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq.h Create Date:2022-07-28 12:15:20
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:static inline struct blk_mq_hw_ctx *blk_mq_map_queue(struct request_queue *q, unsigned int flags, struct blk_mq_ctx *ctx)

Type:struct blk_mq_hw_ctx

Parameter:

TypeParameterName
struct request_queue *q
unsigned intflags
struct blk_mq_ctx *ctx
106  type = HCTX_TYPE_DEFAULT
111  If flags & REQ_HIPRI Then type = HCTX_TYPE_POLL
113  Else if (flags & REQ_OP_MASK) == REQ_OP_READ Then type = HCTX_TYPE_READ
116  Return hctxs[type]
Caller
NameDescribe
blk_mq_get_request
blk_mq_get_tag
__blk_mq_sched_bio_merge