Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq.c Create Date:2022-07-28 17:10:40
Last Modify:2020-03-17 23:18:05 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:blk_mq_alloc_rq_map

Proto: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)

Type:struct blk_mq_tags

Parameter:

TypeParameterName
struct blk_mq_tag_set *set
unsigned inthctx_idx
unsigned intnr_tags
unsigned intreserved_tags
2063  node = CPU -> queue mappings
2064  If node == NUMA_NO_NODE Then node = numa_node
2067  tags = blk_mq_init_tags(nr_tags, reserved_tags, node, BLK_MQ_FLAG_TO_ALLOC_POLICY(flags))
2069  If Not tags Then Return NULL
2072  rqs = kcalloc_node(nr_tags, size of * , 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  If Not rqs Then
2076  blk_mq_free_tags(tags)
2077  Return NULL
2080  static_rqs = kcalloc_node(nr_tags, size of * , 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  If Not static_rqs Then
2084  kfree(rqs)
2085  blk_mq_free_tags(tags)
2086  Return NULL
2089  Return tags
Caller
NameDescribe
__blk_mq_alloc_rq_map
blk_mq_tag_update_depth
blk_mq_sched_alloc_tags