Re: [PATCH] Revised timerfd() interface

Jonathan Corbet
2007-08-15T14:40:27Z

Sorry for the late commentary...as I looked this over, one thing popped
into my mind....

> b) Make the 'clockid' immutable: it can only be set
> if 'ufd' is -1 -- that is, on the timerfd() call that
> first creates a timer.

timerfd() is looking increasingly like a multiplexor system call in
disguise. There is no form of invocation which uses all of the
arguments. Are we sure we wouldn't rather have something like:

timerfd_open(clock);
timerfd_adjust(fd, new_time, old_time);

?

jon