函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:blk_mq_init_bitmap_tags

函数原型:static struct blk_mq_tags *blk_mq_init_bitmap_tags(struct blk_mq_tags *tags, int node, int alloc_policy)

返回类型:struct blk_mq_tags

参数:

类型参数名称
struct blk_mq_tags *tags
intnode
intalloc_policy
438  depth等于nr_tagsnr_reserved_tags
439  round_robin等于alloc_policy恒等于allocate starting from last allocated tag
441  如果bt_alloc( & bitmap_tags, depth, round_robin, node)则转到:free_tags
443  如果bt_alloc( & breserved_tags, nr_reserved_tags, round_robin, node)则转到:free_bitmap_tags
447  返回:tags
448  free_bitmap_tags :
449  sbitmap_queue_free() - Free memory used by a &struct sbitmap_queue.*@sbq: Bitmap queue to free.
450  free_tags :
451  释放内存
452  返回:NULL
调用者
名称描述
blk_mq_init_tags