From owner-freebsd-stable@freebsd.org Thu Jul 23 14:59:27 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B487B9A9A28 for ; Thu, 23 Jul 2015 14:59:27 +0000 (UTC) (envelope-from allbery.b@gmail.com) Received: from mail-wi0-x229.google.com (mail-wi0-x229.google.com [IPv6:2a00:1450:400c:c05::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4E80812EE for ; Thu, 23 Jul 2015 14:59:27 +0000 (UTC) (envelope-from allbery.b@gmail.com) Received: by wibxm9 with SMTP id xm9so153601598wib.1 for ; Thu, 23 Jul 2015 07:59:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=D+UkGqSQJHkmkhwzavb7PBAvjZgtT7GIQRaY+xdb5g4=; b=j1W4ncgui1o0CIPqMTDh9V4LYvYWWWPgOp/eOgM/qAiY9voRljIM5oU4igY5yq6aJk 6Wg9+rf1tQWSFIaXxy6scmLe3eOUk2pJ/TfUvbAMa62h68xkaZ8N4Znd8jjcq6fO3y6D st+hbT3jCQo4rQMvOKaYKthtP0Os0o3pvnnUHElVe4I8K1L9wyC08s5YE80zgAjn8adb Gs0V9QSQjxYDpQirrvgVLGWBRNZinFFxLjhabtdlX+sxe4SIG0lbBsiCRqHELzJGtiox 1YKSCyF0007k7Rfl+SNs6ecwEcYyH+nqe61wFE0VnhowAUY7N7mgcN8ZCnE6bNqDqL/i 2jkg== MIME-Version: 1.0 X-Received: by 10.194.187.170 with SMTP id ft10mr16676286wjc.26.1437663565836; Thu, 23 Jul 2015 07:59:25 -0700 (PDT) Received: by 10.27.133.84 with HTTP; Thu, 23 Jul 2015 07:59:25 -0700 (PDT) In-Reply-To: <190031437662308@web29g.yandex.ru> References: <464641437658995@web16j.yandex.ru> <190031437662308@web29g.yandex.ru> Date: Thu, 23 Jul 2015 10:59:25 -0400 Message-ID: Subject: Re: struct timehands: th_generation field From: Brandon Allbery To: deco33000@yandex.com Cc: freebsd-stable Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jul 2015 14:59:27 -0000 On Thu, Jul 23, 2015 at 10:38 AM, 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@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net