Re: [patch 6/9] signalfd/timerfd v3 - timerfd core ...
From: Davide Libenzi
Date: Mon Mar 12 2007 - 15:00:58 EST
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 itimerspec *ktmr)
> > > +{
> > > + enum hrtimer_mode htmode;
> > > + ktime_t texp, tintv;
> > > +
> > > + if (clockid != CLOCK_MONOTONIC &&
> > > + clockid != CLOCK_REALTIME)
> > > + return -EINVAL;
Maybe a function in hrtimer.c/h like hrtimer_valid_clockid(clockid_t id)
to avoid bolting in clockid_t values in timerfd.c?
- Davide
-
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/