函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:blk_mq_sched_alloc_tags

函数原型:static int blk_mq_sched_alloc_tags(struct request_queue *q, struct blk_mq_hw_ctx *hctx, unsigned int hctx_idx)

返回类型:int

参数:

类型参数名称
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  如果非@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.则返回:负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  如果retblk_mq_sched_free_tags(set, hctx, hctx_idx)
476  返回:ret
调用者
名称描述
blk_mq_init_sched