OpenBSD manual page server

Manual Page Search Parameters

DOSTARTUPHOOKS(9) Kernel Developer's Manual DOSTARTUPHOOKS(9)

dostartuphooksrun all startup hooks

#include <sys/types.h>
#include <sys/systm.h>

void
dostartuphooks(void);

The () function invokes all startup hooks established using the startuphook_establish(9) function. Startup hooks are called in order, i.e., the startup hook established first will be called first.

This function is called from () with interrupts turned on. It is called immediately before the system configures its root and swap devices, but fully after all normal autoconfiguration. This can be used to let device subsystems needing delayed configuration (e.g., due to very long initialization times) still provide the root device. The I2O system, implemented by the iop(4) and ioprbs(4) drivers, is a good example.

Startup hooks are, like shutdown hooks, implemented via the more general dohooks(9) API.

iop(4), ioprbs(4), dohooks(9), domountroothooks(9), doshutdownhooks(9), startuphook_establish(9)

June 4, 2013 OpenBSD-5.4