On Sun, Aug 13, 2017 at 11:10 AM, Ian Lepore <[email protected]> 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)
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to