函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\timer.c Create Date:2022-07-27 11:39:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Helper function to calculate the array index for a given expiry* time.

函数原型:static inline unsigned calc_index(unsigned expires, unsigned lvl)

返回类型:unsigned

参数:

类型参数名称
unsignedexpires
unsignedlvl
493  expires等于expiresLVL_GRAN(lvl)右移LVL_SHIFT(lvl)位
494  返回:LVL_OFFS(lvl)加expires按位与LVL_MASK的值
调用者
名称描述
calc_wheel_index