Re: [PATCH] Revised timerfd() interface
From: Jonathan Corbet
Date: Wed Aug 15 2007 - 10:40:27 EST
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/