函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__blk_mq_alloc_rq_maps

函数原型:static int __blk_mq_alloc_rq_maps(struct blk_mq_tag_set *set)

返回类型:int

参数:

类型参数名称
struct blk_mq_tag_set *set
2914 i小于nr_hw_queues循环如果非__blk_mq_alloc_rq_map(set, i)则
2916  转到:out_unwind
2918  返回:0
2920  out_unwind :
2921 i先自减大于等于0循环
2922  blk_mq_free_rq_map(tags[i])
2924  返回:负ENOMEM
调用者
名称描述
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.