Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static struct timespec64 itimer_get_remtime(struct hrtimer *timer)

Type:struct timespec64

Parameter:

TypeParameterName
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  If 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. Then
39  If rem <= 0 Then rem = NSEC_PER_USEC
41  Else rem = 0
44  Return Map the ktime_t to timespec conversion to ns_to_timespec function (rem)
Caller
NameDescribe
do_getitimer
do_setitimer