Re: [PATCH] /dev/time for Linux, inspired by Plan 9

john stultz
2009-03-06T22:56:57Z

On Tue, Mar 3, 2009 at 7:06 PM, Christopher Brannon <cmbrannon@cox.net> wrote:
> Under Plan 9 from Bell Labs, one queries or sets the system clock by
> reading or writing text strings to a special file named /dev/time.
> I implemented such a facility for Linux.  A read of /dev/time produces
> four decimal numbers: epoch seconds, nanoseconds since start of epoch,
> jiffies since boot, and jiffies per second.

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.

thanks
-john