sys_getitimer  [kernel/itimer.c]


Gets value of an interval timer. The system provides each process with three interval timers, each decrementing in a distinct time domain. When any timer expires, a signal is sent to the process, and the timer (potentially) restarts.

Arguments

eax 105
ebx Timer. It may one of the following values:
ITIMER_REAL decrements in real time, and delivers SIGALRM upon expiration.
ITIMER_VIRTUAL decrements only when the process is executing, and delivers SIGVTALRM upon expiration.
ITIMER_PROF decrements both when the process executes and when the system is executing on behalf of the process. Coupled with ITIMER_VIRTUAL, this timer is usually used to profile the time spent by the application in user and kernel space. SIGPROF is delivered upon expiration.
ecx A pointer to a itimerval structure to be filled:
struc itimerval
{
.it_interval timeval ; next value
.it_value    timeval ; current value
}

struc timeval
{
.tv_sec      rd 1 ; seconds
.tv_usec     rd 1 ; microseconds
}

Return values

If the system call succeeds the return value is 0.
If the system call fails the return value is one of the following errno values:

-EFAULT ecx is not a valid pointer.
-EINVAL ebx is not one of ITIMER_REAL, ITIMER_VIRT, or ITIMER_PROF.

Remarks

n/a

Compatibility

n/a