Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\timerfd.c Create Date:2022-07-28 20:19:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:do_timerfd_gettime

Proto:static int do_timerfd_gettime(int ufd, struct itimerspec64 *t)

Type:int

Parameter:

TypeParameterName
intufd
struct itimerspec64 *t
511  ret = timerfd_fget(ufd, & f)
512  If ret Then Return ret
514  ctx = needed for tty driver, and maybe others
516  spin_lock_irq( & lock)
517  If expired && tintv Then
518  expired = 0
520  If isalarm(ctx) Then
521  ticks += alarm_forward_now( & alarm, tintv) - 1
524  alarm_restart( & alarm)
525  Else
529  hrtimer_restart( & tmr)
532  it_value = Map the ktime_t to timespec conversion to ns_to_timespec function (timerfd_get_remaining(ctx))
533  it_interval = Map the ktime_t to timespec conversion to ns_to_timespec function (tintv)
534  spin_unlock_irq( & lock)
535  fdput(f)
536  Return 0
Caller
NameDescribe
SYSCALL_DEFINE2