From owner-svn-src-head@freebsd.org Sun Aug 13 19:46:01 2017 Return-Path: Delivered-To: svn-src-head@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 AC3FBDD5ECA for ; Sun, 13 Aug 2017 19:46:01 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from bat.yew.relay.mailchannels.net (bat.yew.relay.mailchannels.net [23.83.220.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 78D3380790 for ; Sun, 13 Aug 2017 19:45:59 +0000 (UTC) (envelope-from ian@freebsd.org) X-Sender-Id: _forwarded-from|73.78.92.27 Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 0FCB51083AD for ; Sun, 13 Aug 2017 19:06:35 +0000 (UTC) Received: from outbound1a.eu.mailhop.org (unknown [100.96.126.104]) (Authenticated sender: duocircle) by relay.mailchannels.net (Postfix) with ESMTPA id 7CB91107F04 for ; Sun, 13 Aug 2017 19:06:34 +0000 (UTC) X-Sender-Id: _forwarded-from|73.78.92.27 Received: from outbound1a.eu.mailhop.org (outbound1a.eu.mailhop.org [172.20.55.158]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.9.10); Sun, 13 Aug 2017 19:06:35 +0000 X-MC-Relay: Junk X-MailChannels-SenderId: _forwarded-from|73.78.92.27 X-MailChannels-Auth-Id: duocircle X-Average-Shoe: 225039f42bda8904_1502651194936_447365305 X-MC-Loop-Signature: 1502651194936:2737076243 X-MC-Ingress-Time: 1502651194935 X-MHO-User: 81c6565a-805a-11e7-83af-a91f44540cb3 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound1.eu.mailhop.org (Halon) with ESMTPSA id 81c6565a-805a-11e7-83af-a91f44540cb3; Sun, 13 Aug 2017 19:06:28 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id v7DJ6Q44006505; Sun, 13 Aug 2017 13:06:26 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1502651186.47886.38.camel@freebsd.org> Subject: Re: svn commit: r322465 - in head: share/man/man9 sys/kern sys/sys From: Ian Lepore To: cem@freebsd.org Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Date: Sun, 13 Aug 2017 13:06:26 -0600 In-Reply-To: References: <201708131810.v7DIAOYi094566@repo.freebsd.org> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Aug 2017 19:46:01 -0000 On Sun, 2017-08-13 at 11:41 -0700, Conrad Meyer wrote: > On Sun, Aug 13, 2017 at 11:10 AM, Ian Lepore wrote: > >=20 > > Author: ian > > Date: Sun Aug 13 18:10:24 2017 > > New Revision: 322465 > > URL: https://svnweb.freebsd.org/changeset/base/322465 > >=20 > > Log: > > =A0 Add config_intrhook_oneshot(): schedule an intrhook function and > > unregister > > =A0 it automatically after it runs. > >=20 > > =A0 The config_intrhook mechanism allows a driver to stall the boot > > process > > =A0 until device(s) required for booting are available, by not > > allowing system > > =A0 inits to proceed until all intrhook functions have been > > unregistered. > > =A0 Virtually all existing code simply unregisters from within the > > hook function > > =A0 when it gets called. > >=20 > > =A0 This new function makes that common usage more convenient. > > Instead of > > =A0 allocating and filling in a struct, passing it to a function that > > might (in > > =A0 theory) fail, and checking the return code, now a driver can > > simply call > > =A0 this cannot-fail routine, passing just the intrhook function and > > its arg. > >=20 > > =A0 Differential Revision:=A0=A0=A0=A0=A0=A0=A0=A0https://reviews.fre= ebsd.org/D11963 > Reviewed by: cem, bcr (manpages) As indicated in the referenced differential revision. -- Ian