函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq.c Create Date:2022-07-27 18:46:01
Last Modify:2020-03-17 23:18:05 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:blk_mq_alloc_rq_map

函数原型:struct blk_mq_tags *blk_mq_alloc_rq_map(struct blk_mq_tag_set *set, unsigned int hctx_idx, unsigned int nr_tags, unsigned int reserved_tags)

返回类型:struct blk_mq_tags

参数:

类型参数名称
struct blk_mq_tag_set *set
unsigned inthctx_idx
unsigned intnr_tags
unsigned intreserved_tags
2063  node等于CPU -> queue mappings
2064  如果node恒等于NUMA_NO_NODEnode等于numa_node
2067  tags等于blk_mq_init_tags(nr_tags, reserved_tags, node, BLK_MQ_FLAG_TO_ALLOC_POLICY(flags))
2069  如果非tags则返回:NULL
2072  rqs等于kcalloc_node(nr_tags, *的长度, GFP_NOIO | DOC: Action modifiers* Action modifiers* ~~~~~~~~~~~~~~~~* %__GFP_NOWARN suppresses allocation failure reports.* %__GFP_COMP address compound page metadata.* %__GFP_ZERO returns a zeroed page on success. | __GFP_NORETRY, node)
2075  如果非rqs
2076  blk_mq_free_tags(tags)
2077  返回:NULL
2080  static_rqs等于kcalloc_node(nr_tags, *的长度, GFP_NOIO | DOC: Action modifiers* Action modifiers* ~~~~~~~~~~~~~~~~* %__GFP_NOWARN suppresses allocation failure reports.* %__GFP_COMP address compound page metadata.* %__GFP_ZERO returns a zeroed page on success. | __GFP_NORETRY, node)
2083  如果非static_rqs
2084  释放内存
2085  blk_mq_free_tags(tags)
2086  返回:NULL
2089  返回:tags
调用者
名称描述
__blk_mq_alloc_rq_map
blk_mq_tag_update_depth
blk_mq_sched_alloc_tags