Two things. First, I had to include <linux/jiffies.h> to get this to
build on my machine with 2.6.28 and second, do you have any plans to
get this accepted upstream?

Thanks for putting the time into this!

On Sat, Feb 28, 2009 at 11:57 PM, Chris Brannon <[email protected]> wrote:
> I wrote a module that emulates Plan 9's /dev/time under Linux.
> Reading /dev/time yields 4 decimal numbers: seconds since start of epoch,
> nanoseconds since start of epoch, jiffies since boot, and jiffies per second.
> As with Plan 9, one can set the clock by writing a decimal number to the
> device.  The value represents the number of seconds
> since the start of the epoch.
> The interesting aspect is that users other than root can set the clock
> if they have write access to /dev/time.
>
> The code is here: http://members.cox.net/cmbrannon/devtime.tgz
> It may have issues.  Read it before using.  Comments are welcome.
>
> -- Chris
>
>

Reply via email to