Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:blk_mq_init_tags

Proto:struct blk_mq_tags *blk_mq_init_tags(unsigned int total_tags, unsigned int reserved_tags, int node, int alloc_policy)

Type:struct blk_mq_tags

Parameter:

TypeParameterName
unsigned inttotal_tags
unsigned intreserved_tags
intnode
intalloc_policy
461  If total_tags > BLK_MQ_TAG_MAX Then
462  pr_err("blk-mq: tag depth too large\n")
463  Return NULL
466  tags = kzalloc_node - allocate zeroed memory from a particular memory node.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).*@node: memory node from which to allocate
467  If Not tags Then Return NULL
470  nr_tags = total_tags
471  nr_reserved_tags = reserved_tags
473  Return blk_mq_init_bitmap_tags(tags, node, alloc_policy)