函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:blk_mq_init_tags

函数原型:struct blk_mq_tags *blk_mq_init_tags(unsigned int total_tags, unsigned int reserved_tags, int node, int alloc_policy)

返回类型:struct blk_mq_tags

参数:

类型参数名称
unsigned inttotal_tags
unsigned intreserved_tags
intnode
intalloc_policy
461  如果total_tags大于BLK_MQ_TAG_MAX
462  打印错误信息("blk-mq: tag depth too large\n")
463  返回:NULL
466  tags等于根据内存节点分配内存
467  如果非tags则返回:NULL
470  nr_tags等于total_tags
471  nr_reserved_tags等于reserved_tags
473  返回:blk_mq_init_bitmap_tags(tags, node, alloc_policy)