Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\timer.c Create Date:2022-07-28 10:39:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Helper function to calculate the array index for a given expiry* time.

Proto:static inline unsigned calc_index(unsigned expires, unsigned lvl)

Type:unsigned

Parameter:

TypeParameterName
unsignedexpires
unsignedlvl
493  expires = expires + LVL_GRAN(lvl) >> LVL_SHIFT(lvl)
494  Return LVL_OFFS(lvl) + (expires & LVL_MASK)
Caller
NameDescribe
calc_wheel_index