Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:blk_mq_sched_alloc_tags

Proto:static int blk_mq_sched_alloc_tags(struct request_queue *q, struct blk_mq_hw_ctx *hctx, unsigned int hctx_idx)

Type:int

Parameter:

TypeParameterName
struct request_queue *q
struct blk_mq_hw_ctx *hctx
unsigned inthctx_idx
464  set = tag_set
467  @sched_tags: Tags owned by I/O scheduler. If there is an I/O* scheduler associated with a request queue, a tag is assigned when* that request is allocated. Else, this member is not used. = blk_mq_alloc_rq_map(set, hctx_idx, Max # of requests , reserved_tags)
469  If Not @sched_tags: Tags owned by I/O scheduler. If there is an I/O* scheduler associated with a request queue, a tag is assigned when* that request is allocated. Else, this member is not used. Then Return -ENOMEM
472  ret = blk_mq_alloc_rqs(set, @sched_tags: Tags owned by I/O scheduler. If there is an I/O* scheduler associated with a request queue, a tag is assigned when* that request is allocated. Else, this member is not used., hctx_idx, Max # of requests )
473  If ret Then blk_mq_sched_free_tags(set, hctx, hctx_idx)
476  Return ret
Caller
NameDescribe
blk_mq_init_sched