Re: [patch 6/9] signalfd/timerfd v3 - timerfd core ...

2007-03-12 Thread Davide Libenzi
On Mon, 12 Mar 2007, Davide Libenzi wrote: > On Mon, 12 Mar 2007, Thomas Gleixner wrote: > > > Davide, > > > > On Sun, 2007-03-11 at 16:04 -0700, Davide Libenzi wrote: > > > +static int timerfd_setup(struct timerfd_ctx *ctx, int clockid, int > > > tmrtype, > > > + const struct

Re: [patch 6/9] signalfd/timerfd v3 - timerfd core ...

2007-03-12 Thread Davide Libenzi
On Mon, 12 Mar 2007, Thomas Gleixner wrote: > Davide, > > On Sun, 2007-03-11 at 16:04 -0700, Davide Libenzi wrote: > > +static int timerfd_setup(struct timerfd_ctx *ctx, int clockid, int tmrtype, > > +const struct itimerspec *ktmr) > > +{ > > + enum hrtimer_mode htmode; > >

Re: [patch 6/9] signalfd/timerfd v3 - timerfd core ...

2007-03-12 Thread Thomas Gleixner
Davide, On Sun, 2007-03-11 at 16:04 -0700, Davide Libenzi wrote: > +static int timerfd_setup(struct timerfd_ctx *ctx, int clockid, int tmrtype, > + const struct itimerspec *ktmr) > +{ > + enum hrtimer_mode htmode; > + ktime_t texp, tintv; > + > + if (clockid != CLO

Re: [patch 6/9] signalfd/timerfd v3 - timerfd core ...

2007-03-11 Thread Davide Libenzi
On Sun, 11 Mar 2007, Nicholas Miell wrote: > You should probably make it behave like the other things that use > itimerspec, just to avoid confusion -- i.e. timers are relative by > default, there's a flag that makes them absolute, they expire when > it_value specifies, and repeat every it_interva

Re: [patch 6/9] signalfd/timerfd v3 - timerfd core ...

2007-03-11 Thread Nicholas Miell
On Sun, 2007-03-11 at 16:50 -0700, Nicholas Miell wrote: > You should probably make it behave like the other things that use > itimerspec, just to avoid confusion -- i.e. timers are relative by > default, there's a flag that makes them absolute, they expire when > it_value specifies, and repeat eve

Re: [patch 6/9] signalfd/timerfd v3 - timerfd core ...

2007-03-11 Thread Nicholas Miell
On Sun, 2007-03-11 at 16:13 -0700, Davide Libenzi wrote: > On Sun, 11 Mar 2007, 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

Re: [patch 6/9] signalfd/timerfd v3 - timerfd core ...

2007-03-11 Thread Davide Libenzi
On Sun, 11 Mar 2007, 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 subsystem, they

[patch 6/9] signalfd/timerfd v3 - timerfd core ...

2007-03-11 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 d