Date: Mon, 04 Jan 2016 07:47:39 -0800 From: John Baldwin <jhb@freebsd.org> To: Adrian Chadd <adrian@freebsd.org> Cc: "src-committers@freebsd.org" <src-committers@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org> Subject: Re: svn commit: r293022 - head/sys/net80211 Message-ID: <2558363.cYPdmfTgJ4@ralph.baldwin.cx> In-Reply-To: <CAJ-VmokF3EW9QDmScGFhRWjQ3a8Z4QF0YQyragPHUs48zb6DHg@mail.gmail.com> References: <201601010021.u010L7sW006625@repo.freebsd.org> <5919271.R3YaC4QkYh@ralph.baldwin.cx> <CAJ-VmokF3EW9QDmScGFhRWjQ3a8Z4QF0YQyragPHUs48zb6DHg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Friday, January 01, 2016 07:41:42 PM Adrian Chadd wrote: > yup. all of this is ... terrible atm. > > I do need to be able to give a bounds though. :( The _sbt variants let you specify a bounds for the "fuzzy". You give the deadline time as one value ('sbt') and an upper bound on how long to delay extra as the second ('pr'). The wait will timeout sometime between 'sbt' and 'sbt + pr'. Alternatively, you can leave 'pr' as 0 and encode the precision via the C_PREL() flags instead as described in callout(9). (I think how to use sbintime_t should probably be broken out into a separate sbintime(9) manpage that callout(9) and other consumers reference rather than being buried in callout(9) to make it easier to figure out how to use these. The same manpage can also talk about the SBT_* constants and how to generate sbintime_t values from known reference times.) -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2558363.cYPdmfTgJ4>