[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0703121158060.6936@alien.or.mcafeemobile.com>
Date: Mon, 12 Mar 2007 12:00:34 -0700 (PDT)
From: Davide Libenzi <davidel@...ilserver.org>
To: Thomas Gleixner <tglx@...utronix.de>
cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: [patch 6/9] signalfd/timerfd v3 - timerfd core ...
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists