Re: [patch 6/13] signal/timer/event fds v6 - timerfd core ...

2007-03-17 Thread Arnd Bergmann
On Friday 16 March 2007 01:22:15 Davide Libenzi wrote: This patch introduces a new system call for timers events delivered though file descriptors. This allows timer event to be used with standard POSIX poll(2), select(2) and read(2). As a consequence of supporting the Linux f_op-poll

Re: [patch 6/13] signal/timer/event fds v6 - timerfd core ...

2007-03-16 Thread Thomas Gleixner
On Thu, 2007-03-15 at 17:22 -0700, Davide Libenzi wrote: +static void timerfd_setup(struct timerfd_ctx *ctx, int clockid, int flags, + const struct itimerspec *ktmr) +{ + enum hrtimer_mode htmode; + + htmode = (flags TFD_TIMER_ABSTIME) ? HRTIMER_MODE_ABS:

Re: [patch 6/13] signal/timer/event fds v6 - timerfd core ...

2007-03-16 Thread Davide Libenzi
On Fri, 16 Mar 2007, Thomas Gleixner wrote: On Thu, 2007-03-15 at 17:22 -0700, Davide Libenzi wrote: +static void timerfd_setup(struct timerfd_ctx *ctx, int clockid, int flags, + const struct itimerspec *ktmr) +{ + enum hrtimer_mode htmode; + + htmode = (flags

[patch 6/13] signal/timer/event fds v6 - timerfd core ...

2007-03-15 Thread Davide Libenzi
This patch introduces a new system call for timers events delivered though file descriptors. This allows timer event to be used with standard POSIX poll(2), select(2) and read(2). As a consequence of supporting the Linux f_op-poll subsystem, they can be used with epoll(2) too. The system call is