All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Brannon <cmbrannon@cox.net>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] /dev/time for Linux, inspired by Plan 9
Date: Sat, 14 Mar 2009 18:27:04 -0500	[thread overview]
Message-ID: <20090314232700.BNAW15318.fed1rmmtao105.cox.net@fed1rmimpo01.cox.net> (raw)
In-Reply-To: <20090312181225.GC26099@tuxbookpro.rit.edu>

J.R. Mauro wrote:
> On Sat, Mar 07, 2009 at 10:23:05AM -0600, Chris Brannon wrote:
> > John Stultz wrote:
> > > Ehh. Why would we want to export raw kernel internal values like
> > > jiffies and HZ?
> > > 
> > > I think the CLOCK_MONOTONIC clockid would probably be a better value to
> > > export.
> > 
> > I'll look at CLOCK_MONOTONIC clockid.  I'm more than glad to export
> > something > more appropriate, including nothing at all (dummy values,
> > perhaps).
> 
> Chris, are the current values exactly what one would get if reading /dev/time
> onPlan 9?
> If possible, it would be nice to aim for 100% compatibility as there are
> folks trying to get complete Plan 9 binary compatibility working in Linux.

On Plan 9, the last two values are architecture-dependent.
I rewrote my patch to export nanoseconds since boot and nanoseconds per
second, but either choice should be ok from the standpoint of compatibility.

I am going to rework this patch to eliminate the inconsistencies
with the Plan 9 interface.

Thanks to Jochen Vos for pointing out the error in the documentation.
I forgot to change my example to reflect the change to the code.

-- Chris

  reply	other threads:[~2009-03-14 23:42 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-04  3:06 [PATCH] /dev/time for Linux, inspired by Plan 9 Christopher Brannon
2009-03-06 17:57 ` Greg KH
2009-03-07  5:43   ` J.R. Mauro
2009-03-07  5:54     ` Greg KH
2009-03-07 16:08       ` Chris Brannon
2009-03-08 16:03       ` J.R. Mauro
2009-03-06 22:56 ` john stultz
2009-03-07 16:23   ` Chris Brannon
2009-03-12 18:12     ` J.R. Mauro
2009-03-14 23:27       ` Chris Brannon [this message]
2009-03-10 11:22 ` Pavel Machek
2009-03-11  7:28 ` Américo Wang
2009-03-11 15:10 Christopher Brannon
2009-03-11 21:49 ` Jochen Voß
2009-03-11 22:07 ` Bill Nottingham
2009-03-12  8:00   ` David Newall
2009-03-12 18:15     ` J.R. Mauro
2009-03-12  9:30 ` Giacomo A. Catenazzi
2009-03-14 16:13 ` Pavel Machek
2009-03-17 15:15   ` J.R. Mauro
2009-03-21 22:05     ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090314232700.BNAW15318.fed1rmmtao105.cox.net@fed1rmimpo01.cox.net \
    --to=cmbrannon@cox.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.