DOSHUTDOWNHOOKS(9) BSD Kernel Manual DOSHUTDOWNHOOKS(9)
doshutdownhooks - run all shutdown hooks
#include <sys/types.h> #include <sys/systm.h> void doshutdownhooks(void);
The doshutdownhooks() function invokes all shutdown hooks established us- ing 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 boot(9) 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). Shutdown hooks are, like startup hooks, implemented via the more general dohooks(9) API.
boot(9), dohooks(9), dostartuphooks(9), shutdownhook_establish(9) MirOS BSD #10-current November 13, 1995 1
Generated on 2014-07-04 21:17:45 by $MirOS: src/scripts/roff2htm,v 1.79 2014/02/10 00:36:11 tg Exp $
These manual pages and other documentation are copyrighted by their respective writers;
their source is available at our CVSweb,
AnonCVS, and other mirrors. The rest is Copyright © 2002‒2014 The MirOS Project, Germany.
This product includes material provided by Thorsten Glaser.
This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report – diffs preferred.