函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:queued_to_index

函数原型:static inline unsigned int queued_to_index(unsigned int queued)

返回类型:unsigned int

参数:

类型参数名称
unsigned intqueued
1016  如果非queued则返回:0
1019  返回:两数取小(BLK_MQ_MAX_DISPATCH_ORDER - 1, log2 - log base 2 of 32-bit or a 64-bit unsigned value*@n: parameter* constant-capable log of base 2 calculation* - this can be used to initialise global variables from constant data, hence* the massive ternary operator construction* selects the (queued) + 1)
调用者
名称描述
blk_mq_dispatch_rq_listReturns true if we did some work AND can potentially do more.