函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mer_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

函数原型:static struct timespec64 itimer_get_remtime(struct hrtimer *timer)

返回类型:struct timespec64

参数:

类型参数名称
struct hrtimer *timer
31  rem等于hrtimer_get_remaining - get remaining time for the timer*@timer: the timer to read*@adjust: adjust relative timers when CONFIG_TIME_LOW_RES=y
38  如果A timer is active, when it is enqueued into the rbtree or the* callback function is running or it's in the state of being migrated* to another cpu.* It is important for this function to not return a false negative.
39  如果rem小于等于0则rem等于NSEC_PER_USEC
41  否则rem等于0
44  返回:Map the ktime_t to timespec conversion to ns_to_timespec function (rem)
调用者
名称描述
do_getitimer
do_setitimer