Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Get the time remaining on a POSIX.1b interval timer.

Proto:static int do_timer_gettime(timer_t timer_id, struct itimerspec64 *setting)

Type:int

Parameter:

TypeParameterName
timer_ttimer_id
struct itimerspec64 *setting
700  ret = 0
702  timr = lock_timer(timer_id, & flags)
703  If Not timr Then Return -EINVAL
706  memset(setting, 0, size of setting )
707  kc = kclock
708  If WARN_ON_ONCE(!kc || !timer_get) Then ret = -EINVAL
710  Else timer_get(timr, setting)
713  unlock_timer(timr, flags)
714  Return ret
Caller
NameDescribe
SYSCALL_DEFINE2Get the time remaining on a POSIX.1b interval timer.