svn commit: r322465 - in head: share/man/man9 sys/kern sys/sys

Ian Lepore ian at freebsd.org
Sun Aug 13 19:15:51 UTC 2017


On Sun, 2017-08-13 at 11:41 -0700, Conrad Meyer wrote:
> On Sun, Aug 13, 2017 at 11:10 AM, Ian Lepore <ian at 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)

As indicated in the referenced differential revision.

-- Ian



More information about the svn-src-all mailing list