Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq.c Create Date:2022-07-28 17:09:26
Last Modify:2020-03-17 23:18:05 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:queued_to_index

Proto:static inline unsigned int queued_to_index(unsigned int queued)

Type:unsigned int

Parameter:

TypeParameterName
unsigned intqueued
1016  If Not queued Then Return 0
1019  Return min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(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)
Caller
NameDescribe
blk_mq_dispatch_rq_listReturns true if we did some work AND can potentially do more.