Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Aug 2017 13:06:26 -0600
From:      Ian Lepore <ian@freebsd.org>
To:        cem@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:  <1502651186.47886.38.camel@freebsd.org>
In-Reply-To: <CAG6CVpVeqpn8fOi47V0YTskznYcKV4xaWRHTTKdF9zkx9rKjfQ@mail.gmail.com>
References:  <201708131810.v7DIAOYi094566@repo.freebsd.org> <CAG6CVpVeqpn8fOi47V0YTskznYcKV4xaWRHTTKdF9zkx9rKjfQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 2017-08-13 at 11:41 -0700, Conrad Meyer wrote:
> On Sun, Aug 13, 2017 at 11:10 AM, Ian Lepore <ian@freebsd.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1502651186.47886.38.camel>