fast/syscall-free gettimeofday ?

K. Macy kmacy at
Tue Jun 14 16:30:50 UTC 2011

On Tue, Jun 14, 2011 at 6:08 PM, K. Macy <kmacy at> wrote:
> kib added rudimentary support for this in January

To clarify, this is just the kernel side of the shared page
infrastructure, and is currently only hosting the the signal handling
code. The user library side is non-existent and no data sharing
currently happens.

> On Tue, Jun 14, 2011 at 6:11 PM, Luigi Rizzo <rizzo at> wrote:
>> there were discussions at some point on an imprecise but
>> fast implementations of gettimeofday() that would not require
>> a system call (perhaps mmapping some memory region which
>> is opportunistically updated).
>> Does anyone remember what happened about that ?
>> Otherwise, is there any place in the kernel where i can fetch
>> a struct timeval which is not off by more than, say 1 tick ?
>> cheers
>> luigi
>> _______________________________________________
>> freebsd-current at mailing list
>> To unsubscribe, send any mail to "freebsd-current-unsubscribe at"

More information about the freebsd-current mailing list