Date: Sun, 13 Aug 2017 11:41:17 -0700 From: Conrad Meyer <cem@freebsd.org> To: Ian Lepore <ian@freebsd.org> Cc: src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r322465 - in head: share/man/man9 sys/kern sys/sys Message-ID: <CAG6CVpVeqpn8fOi47V0YTskznYcKV4xaWRHTTKdF9zkx9rKjfQ@mail.gmail.com> In-Reply-To: <201708131810.v7DIAOYi094566@repo.freebsd.org> References: <201708131810.v7DIAOYi094566@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Aug 13, 2017 at 11:10 AM, Ian Lepore <ian@freebsd.org> wrote: > Author: ian > Date: Sun Aug 13 18:10:24 2017 > New Revision: 322465 > URL: https://svnweb.freebsd.org/changeset/base/322465 > > Log: > Add config_intrhook_oneshot(): schedule an intrhook function and unregister > it automatically after it runs. > > The config_intrhook mechanism allows a driver to stall the boot process > until device(s) required for booting are available, by not allowing system > inits to proceed until all intrhook functions have been unregistered. > Virtually all existing code simply unregisters from within the hook function > when it gets called. > > This new function makes that common usage more convenient. Instead of > allocating and filling in a struct, passing it to a function that might (in > theory) fail, and checking the return code, now a driver can simply call > this cannot-fail routine, passing just the intrhook function and its arg. > > Differential Revision: https://reviews.freebsd.org/D11963 Reviewed by: cem, bcr (manpages)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG6CVpVeqpn8fOi47V0YTskznYcKV4xaWRHTTKdF9zkx9rKjfQ>