|STARTUPHOOK_ESTABLISH(9)||Kernel Developer's Manual||STARTUPHOOK_ESTABLISH(9)|
add or remove a startup hook
(*fn)(void *), void
function removes the hook described by the opaque pointer
cookie from the list of hooks to be invoked at
startup. If cookie is invalid, the result of
startuphook_disestablish() is undefined.
Startup hooks should be used to perform one-time activities that must happen immediately before the root and swap devices are configured, but after normal device autoconfiguration.
Startup hooks are implemented via the more general dohooks(9) API.
returns an opaque pointer describing the newly established startup hook.
Otherwise, it returns
The names are clumsy, at best.
|December 10, 2014||OpenBSD-current|