Re: Accessing monotonic clock from modules

From: Gerald Britton
Date: Thu Jun 02 2005 - 19:15:24 EST


On Thu, Jun 02, 2005 at 08:36:48AM +0200, Mikael Starvik wrote:
> We would like to get the posix monotonic clock from a loadable module.
> Would a patch to make do_posix_clock_monotonic_gettime exported ok or
> should we do it in some other way?

A possible use of a clean api would be in the packet rx timestamping code
where one is interested in accurate inter-packet timing, but the only way of
timestamping currently uses do_gettimeofday, so is fragile across time
time changes.

-- Gerald
-
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/