Re: RFC: A revised timerfd API

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Thomas Gleixner <tglx@...>
Cc: <Lee.Schermerhorn@...>, <torvalds@...>, <vda.linux@...>, <rdunlap@...>, <corbet@...>, <hch@...>, <akpm@...>, <linux-kernel@...>, <geoff@...>, <drepper@...>, <davidel@...>, David Härdeman <david@...>
Date: Tuesday, September 18, 2007 - 5:30 am

Hi Thomas,


Fair enough.  I mainly tried to do things that way to minimize
the change from the Davide's original interface.


Yes.  Perhaps some refactoring might be required, if we went 
down this route.


Well, I left it it kind of open whether the expiration 
notification might be delivered via both the traditional
mechanism, and via the tiemrfd.  But I realize that all
may get overly complex.


I would say not (see also my reply to David Härdeman.)


Yes, it is a little ugly.


This seems like a workable idea also.  But note David Härdeman's
critique of options c & d: the existence of a coupled timerfd 
and a timerid means that the application must maintain a mapping
between the two, so that after an epoll call (for example) that 
says the timerfd is ready, the timer can be manipulated using
the corresponding timerfd.  This isn't IMO a fatal flaw, but
it does make the API a little more clumsy.

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:
RFC: A revised timerfd API, Michael Kerrisk, (Tue Sep 18, 3:27 am)
Re: RFC: A revised timerfd API, Davide Libenzi, (Tue Sep 18, 12:51 pm)
Re: RFC: A revised timerfd API, Michael Kerrisk, (Sat Sep 22, 9:12 am)
Re: RFC: A revised timerfd API, Davide Libenzi, (Sat Sep 22, 5:07 pm)
Re: RFC: A revised timerfd API, Michael Kerrisk, (Sun Sep 23, 1:33 pm)
Re: RFC: A revised timerfd API, Davide Libenzi, (Sun Sep 23, 2:33 pm)
Re: RFC: A revised timerfd API, Davide Libenzi, (Sun Sep 23, 2:41 pm)
Re: RFC: A revised timerfd API, Michael Kerrisk, (Sun Sep 23, 3:03 pm)
Re: RFC: A revised timerfd API, Thomas Gleixner, (Sat Sep 22, 5:26 pm)
Re: RFC: A revised timerfd API, Davide Libenzi, (Sat Sep 22, 7:21 pm)
Re: RFC: A revised timerfd API, Thomas Gleixner, (Sat Sep 22, 1:10 pm)
Re: RFC: A revised timerfd API, Bernd Eckenfels, (Sat Sep 22, 10:32 am)
Re: RFC: A revised timerfd API, Michael Kerrisk, (Sat Sep 22, 12:07 pm)
Re: RFC: A revised timerfd API, David , (Sat Sep 22, 7:37 pm)
Re: RFC: A revised timerfd API, Thomas Gleixner, (Sat Sep 22, 1:05 pm)
Re: RFC: A revised timerfd API, Michael Kerrisk, (Tue Sep 18, 3:30 am)
Re: RFC: A revised timerfd API, Thomas Gleixner, (Tue Sep 18, 5:10 am)
Re: RFC: A revised timerfd API, Michael Kerrisk, (Tue Sep 18, 5:30 am)
Re: RFC: A revised timerfd API, Thomas Gleixner, (Tue Sep 18, 5:42 am)
Re: RFC: A revised timerfd API, Michael Kerrisk, (Tue Sep 18, 7:08 am)
Re: RFC: A revised timerfd API, Thomas Gleixner, (Tue Sep 18, 7:30 am)
Re: RFC: A revised timerfd API, David , (Tue Sep 18, 9:13 am)
Re: RFC: A revised timerfd API, Michael Kerrisk, (Sat Sep 22, 9:03 am)
Re: RFC: A revised timerfd API, David , (Tue Sep 18, 4:05 am)
Re: RFC: A revised timerfd API, Michael Kerrisk, (Tue Sep 18, 5:01 am)
Re: RFC: A revised timerfd API, Thomas Gleixner, (Tue Sep 18, 5:27 am)