Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:rns usage with margin added if surplus is large enough

Proto:static unsigned int surplus_adjusted_hweight_inuse(unsigned int usage, unsigned int hw_inuse)

Type:unsigned int

Parameter:

TypeParameterName
unsigned intusage
unsigned inthw_inuse
1331  usage = DIV_ROUND_UP(usage * SURPLUS_SCALE_PCT, 100)
1332  usage += SURPLUS_SCALE_ABS
1335  If usage + SURPLUS_MIN_ADJ_DELTA > hw_inuse Then Return 0
1338  Return usage
Caller
NameDescribe
ioc_timer_fn