Re: [PATCH] Revised timerfd() interface

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Michael Kerrisk
Date: Tuesday, September 4, 2007 - 1:03 am

Davide,


Neither of the proposed APIs (either my multiplexed version of timerfd()
or Jon's/my idea of using three system calls (like POSIX timers), or
the notion of timerfd() integrated with POSIX timers) is more
complicated than the existing POSIX timers API.

The ABI change doesn't really matter, since timerfd() was broken in 2.6.22
anyway.

Both previous APIs provided the features I have described provide:

* the ability to fetch the old timer value when applying
  a new setting

* the ability to non-destructively fetch the amount of time remaining
  on a timer.

This is clearly useful for timers -- but you have not explained why
you think this is not necessary for timerfd timers.

Please -- let's do timerfd() better.  Either three syscalls like:

timerfd_create()
timerfd_settime()
timer_gettime()

(the analogs of timer_create(), timer_settime(), timer_gettime()).

Or (if possible, and even better) timerfd() integrated with POSIX timers.

Then we have a good API for the coming decades.  I'm prepared to help
out with patches (for what my help is worth ;-)).

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:
Re: [PATCH] Revised timerfd() interface, Michael Kerrisk, (Fri Aug 24, 11:41 pm)
Re: [PATCH] Revised timerfd() interface, Davide Libenzi, (Thu Aug 30, 5:01 am)
Re: [PATCH] Revised timerfd() interface, Michael Kerrisk, (Tue Sep 4, 1:03 am)
Re: [PATCH] Revised timerfd() interface, Andrew Morton, (Tue Sep 4, 1:18 am)
Re: [PATCH] Revised timerfd() interface, Michael Kerrisk, (Tue Sep 4, 1:24 am)
Re: [PATCH] Revised timerfd() interface, Davide Libenzi, (Tue Sep 4, 8:25 am)
Re: [PATCH] Revised timerfd() interface, Michael Kerrisk, (Tue Sep 4, 8:39 am)
Re: [PATCH] Revised timerfd() interface, Michael Kerrisk, (Tue Sep 4, 1:49 pm)
Re: [PATCH] Revised timerfd() interface, Davide Libenzi, (Tue Sep 4, 3:41 pm)
Re: [PATCH] Revised timerfd() interface, Davide Libenzi, (Tue Sep 4, 3:44 pm)
Re: [PATCH] Revised timerfd() interface, Michael Kerrisk, (Tue Sep 4, 5:08 pm)
Re: [PATCH] Revised timerfd() interface, Andrew Morton, (Wed Sep 5, 5:02 am)
Re: [PATCH] Revised timerfd() interface, Denys Vlasenko, (Wed Sep 5, 5:12 am)
timerfd redux, Michael Kerrisk, (Wed Sep 5, 8:32 am)
Re: [PATCH] Revised timerfd() interface, Davide Libenzi, (Wed Sep 5, 9:14 am)
Re: [PATCH] Revised timerfd() interface, Michael Kerrisk, (Wed Sep 5, 9:23 am)
Re: [PATCH] Revised timerfd() interface, Davide Libenzi, (Wed Sep 5, 12:57 pm)
Re: [PATCH] Revised timerfd() interface, Michael Kerrisk, (Wed Sep 5, 3:50 pm)
Re: [PATCH] Revised timerfd() interface, Davide Libenzi, (Wed Sep 5, 4:45 pm)
Re: [PATCH] Revised timerfd() interface, Michael Kerrisk, (Wed Sep 5, 11:58 pm)
Re: [PATCH] Revised timerfd() interface, Davide Libenzi, (Thu Sep 6, 4:37 pm)
Re: [PATCH] Revised timerfd() interface, Michael Kerrisk, (Sun Sep 9, 8:15 pm)
Re: timerfd redux, Andrew Morton, (Wed Sep 12, 7:39 pm)
Re: timerfd redux, Michael Kerrisk, (Wed Sep 12, 11:14 pm)
Re: timerfd redux, Michael Kerrisk, (Thu Sep 13, 1:13 am)
Re: timerfd redux, Andrew Morton, (Thu Sep 13, 1:20 am)