Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq.c Create Date:2022-07-28 17:11:42
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_maps

Proto:static int __blk_mq_alloc_rq_maps(struct blk_mq_tag_set *set)

Type:int

Parameter:

TypeParameterName
struct blk_mq_tag_set *set
2914  When i < nr_hw_queues cycle If Not __blk_mq_alloc_rq_map(set, i) Then
2916  Go to out_unwind
2918  Return 0
2920  out_unwind :
2921  When --i >= 0 cycle
2922  blk_mq_free_rq_map(tags[i])
2924  Return -ENOMEM
Caller
NameDescribe
blk_mq_alloc_rq_mapsAllocate the request maps associated with this tag_set. Note that this* may reduce the depth asked for, if memory is tight. set->queue_depth* will be updated to reflect the allocated depth.