函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hrtimer_get_remaining - get remaining time for the timer*@timer: the timer to read*@adjust: adjust relative timers when CONFIG_TIME_LOW_RES=y

函数原型:ktime_t __hrtimer_get_remaining(const struct hrtimer *timer, bool adjust)

返回类型:ktime_t

参数:

类型参数名称
const struct hrtimer *timer
booladjust
1297  lock_hrtimer_base(timer, & flags)
1298  如果IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_TIME_LOW_RES)且adjustrem等于hrtimer_expires_remaining_adjusted(timer)
1300  否则rem等于hrtimer_expires_remaining(timer)
1302  Counterpart to lock_hrtimer_base above:
1304  返回:rem
调用者
名称描述
itimer_get_remtimemer_get_remtime - get remaining time for the timer*@timer: the timer to read* Returns the delta between the expiry time and now, which can be* less than zero or 1usec for an pending expired timer
hrtimer_get_remaining