Re: Man page for revised timerfd API

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Michael Kerrisk
Date: Thursday, September 27, 2007 - 3:35 am

Davide,

A further question: what is the expected behavior in the
following scenario:

1. Create a timerfd and arm it.
2. Wait until M timer expirations have occurred
3. Modify the settings of the timer
4. Wait for N further timer expirations have occurred
5. read() from the timerfd

Does the buffer returned by the read() contain the value
N or (M+N)?  In other words, should modifying the timer
settings reset the expiration count to zero?

Cheers,

Michael
-- 
Michael Kerrisk
maintainer of Linux man pages Sections 2, 3, 4, 5, and 7 

Want to help with man page maintenance?  
Grab the latest tarball at
http://www.kernel.org/pub/linux/docs/manpages , 
read the HOWTOHELP file and grep the source 
files for 'FIXME'.

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Man page for revised timerfd API, Michael Kerrisk, (Wed Sep 26, 12:12 am)
Re: Man page for revised timerfd API, Davide Libenzi, (Wed Sep 26, 11:06 am)
Re: Man page for revised timerfd API, Michael Kerrisk, (Wed Sep 26, 2:13 pm)
Re: Man page for revised timerfd API, Geoff Clare, (Thu Sep 27, 1:20 am)
Re: Man page for revised timerfd API, Michael Kerrisk, (Thu Sep 27, 3:35 am)
Re: Man page for revised timerfd API, Michael Kerrisk, (Thu Sep 27, 3:50 am)
Re: Man page for revised timerfd API, Davide Libenzi, (Thu Sep 27, 9:45 am)
Re: Man page for revised timerfd API, Michael Kerrisk, (Tue Oct 2, 11:50 pm)
Re: Man page for revised timerfd API, Matti Aarnio, (Wed Oct 3, 1:14 am)
Re: Man page for revised timerfd API, Michael Kerrisk, (Thu Oct 4, 11:19 am)