struct timehands: th_generation field

Brandon Allbery allbery.b at gmail.com
Thu Jul 23 14:59:27 UTC 2015


On Thu, Jul 23, 2015 at 10:38 AM, <deco33000 at yandex.com> wrote:

> Is the maximum value for th_generation equal to 10 ?
> http://fxr.watson.org/fxr/source/kern/kern_tc.c?v=FREEBSD10#L77
>

I don't think those relate to generations. Generations change on every
clock tick; the multiple timehands structs relate to forcibly setting the
time, as opposed to the clock moving forward normally. It does appear serve
a similar purpose, since forcibly setting the time is even more "violent"
(to anything currently reading the clock) than advancing the clock on a
clock tick, since that's when other adjustments including possibly
switching the clock source will be applied.

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net


More information about the freebsd-stable mailing list