函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__blk_mq_get_tag

函数原型:static int __blk_mq_get_tag(struct blk_mq_alloc_data *data, struct sbitmap_queue *bt)

返回类型:int

参数:

类型参数名称
struct blk_mq_alloc_data *data
struct sbitmap_queue *bt
93  如果非flags按位与BLK_MQ_REQ_INTERNAL的值且非For shared tag users, we track the number of currently active users* and attempt to provide a fair share of the tag depth for each of them.则返回:负1
96  如果shallow_depth则返回:__sbitmap_queue_get_shallow(bt, shallow_depth)
98  否则返回:__sbitmap_queue_get(bt)
调用者
名称描述
blk_mq_get_tag