From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 21 17:24:29 2014 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3409983D for ; Fri, 21 Feb 2014 17:24:29 +0000 (UTC) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 07F511760 for ; Fri, 21 Feb 2014 17:24:28 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1WGtpr-0004fN-RR for freebsd-hackers@FreeBSD.org; Fri, 21 Feb 2014 17:24:28 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id s1LHOP3g033023 for ; Fri, 21 Feb 2014 10:24:25 -0700 (MST) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/8ZqBng5anmFk7PcGksoto Subject: What is the precision arg for callout_reset_sbt() and friends? From: Ian Lepore To: "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset="us-ascii" Date: Fri, 21 Feb 2014 10:24:25 -0700 Message-ID: <1393003465.1145.111.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Feb 2014 17:24:29 -0000 I can't figure out from the code or the manpage what should be passed as the precision argument to the sleep-related functions that take sbintime values. It seems like most existing code passes 0, what effect does that have? What should I pass if precision really matters? What if it doesn't matter at all? Most of the time I want something like a 1ms timeout where it really isn't critical if it turns into 2 or even 5ms. Other times when I say 1ms I really want something close to 1ms. -- Ian