Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:do_getitimer

Proto:static int do_getitimer(int which, struct itimerspec64 *value)

Type:int

Parameter:

TypeParameterName
intwhich
struct itimerspec64 *value
78  tsk = current process
81  Case which == Names of the interval timers, and structure* defining a timer setting:
82  spin_lock_irq( & siglock)
83  it_value = 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
84  it_interval = Map the ktime_t to timespec conversion to ns_to_timespec function (it_real_incr)
86  spin_unlock_irq( & siglock)
87  Break
88  Case which == ITIMER_VIRTUAL
89  get_cpu_itimer(tsk, CPUCLOCK_VIRT, value)
90  Break
91  Case which == ITIMER_PROF
92  get_cpu_itimer(tsk, CPUCLOCK_PROF, value)
93  Break
94  Default
95  Return -EINVAL
97  Return 0
Caller
NameDescribe
SYSCALL_DEFINE2
COMPAT_SYSCALL_DEFINE2