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:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:blk_mq_init_bitmap_tags

Proto:static struct blk_mq_tags *blk_mq_init_bitmap_tags(struct blk_mq_tags *tags, int node, int alloc_policy)

Type:struct blk_mq_tags

Parameter:

TypeParameterName
struct blk_mq_tags *tags
intnode
intalloc_policy
438  depth = nr_tags - nr_reserved_tags
439  round_robin = alloc_policy == allocate starting from last allocated tag
441  If bt_alloc( & bitmap_tags, depth, round_robin, node) Then Go to free_tags
443  If bt_alloc( & breserved_tags, nr_reserved_tags, round_robin, node) Then Go to free_bitmap_tags
447  Return 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  kfree(tags)
452  Return NULL
Caller
NameDescribe
blk_mq_init_tags