Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bfq-wf2q.c Create Date:2022-07-28 17:59:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:q_weight_to_ioprio - calc an ioprio from a weight.*@weight: the weight value to convert.* To preserve as much as possible the old only-ioprio user interface,* 0 is used as an escape ioprio value for weights (numerically) equal or

Proto:static unsigned short bfq_weight_to_ioprio(int weight)

Type:unsigned short

Parameter:

TypeParameterName
intweight
527  Return max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(int, 0, 8 best effort priority levels are supported * BFQ_WEIGHT_CONVERSION_COEFF - weight)
Caller
NameDescribe
__bfq_entity_update_weight_prioUpdate weight and priority of entity