*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: startuphook_establish | Section: 9 | Source: OpenBSD | File: startuphook_establish.9
STARTUPHOOK_ESTABLISH(9) FreeBSD Kernel Developer's Manual NAME startuphook_establish, startuphook_disestablish - add or remove a startup hook SYNOPSIS #include <sys/types.h> #include <sys/systm.h> void * startuphook_establish(void (*fn)(void *), void *arg); void startuphook_disestablish(void *cookie); DESCRIPTION The startuphook_establish() function adds fn to the list of hooks invoked by dostartuphooks(9) at startup. When invoked, the hook function fn will be passed arg as its only argument. The startuphook_disestablish() 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. RETURN VALUES If successful, startuphook_establish() returns an opaque pointer describing the newly established startup hook. Otherwise, it returns NULL. SEE ALSO dohooks(9), dostartuphooks(9) BUGS The names are clumsy, at best. FreeBSD 14.1-RELEASE-p8 December 10, 2014 FreeBSD 14.1-RELEASE-p8

Navigation Options