Re: How to pause/continue itimer ?

RVP <[email protected]>
Newsgroups gmane.os.netbsd.devel.kernel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.