tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to pause/continue itimer ?



On Sun, 30 Nov 2025, Beesdeckar wrote:

It seems that I found how to make it functional,

zeroing both values pauses timer.
For continuing timer I need to put back old values
and call again
getnanotime(&t.it_time.it_value);
itimer_settime(&t);


You have to call itimer_settime() after zeroing too. (Similar to setitimer(2)
usage in userspace.)

-RVP


Home | Main Index | Thread Index | Old Index