netbsd man page for doshutdownhooks

Query: doshutdownhooks

OS: netbsd

Section: 9

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

DOSHUTDOWNHOOKS(9)					   BSD Kernel Developer's Manual					DOSHUTDOWNHOOKS(9)

NAME
doshutdownhooks -- run all shutdown hooks
SYNOPSIS
void doshutdownhooks(void);
DESCRIPTION
The doshutdownhooks routine is deprecated. Use pmf_system_shutdown(9) instead. The doshutdownhooks() function invokes all shutdown hooks established using the shutdownhook_establish(9) function. Shutdown hooks are called in reverse order, i.e., the shutdown hook established last will be called first. This function is called from cpu_reboot() with interrupts turned off. It is called immediately before the system is halted or rebooted, after file systems have been unmounted, after the clock has been updated, and after a system dump has been done (if necessary).
SEE ALSO
cpu_reboot(9), shutdownhook_establish(9)
BSD
February 11, 2010 BSD
Related Man Pages
ng_hub(4) - debian
powerhook_establish(9) - netbsd
shutdownhook_disestablish(9) - netbsd
shutdownhook_establish(9) - netbsd
config_intrhook_establish(9) - freebsd
Similar Topics in the Unix Linux Community
sorting left-justified numeric values
Vm versus physical linux server
NetBSD 6.1.2: apm and admd not found
Grandpa returning to UNIX
BSD Unix Toolbox: 1000+ Commands for FreeBSD, OpenBSD, and NetBSD