From e5048c6cd53c81e64bc5beaf9cc05549039c4188 Mon Sep 17 00:00:00 2001 From: julian Date: Thu, 22 Aug 1996 03:50:33 +0000 Subject: Some cleanups to the callout lists recently added. note that at_shutdown has a new parameter to indicate When during a shutdown the callout should be made. also add a RB_POWEROFF flag to reboot "howto" parameter.. tells the reboot code in our at_shutdown module to turn off the UPS and kill the power. bound to be useful eventually on laptops --- share/man/man9/at_shutdown.9 | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'share/man') diff --git a/share/man/man9/at_shutdown.9 b/share/man/man9/at_shutdown.9 index 73e3a1f..47e7a44 100644 --- a/share/man/man9/at_shutdown.9 +++ b/share/man/man9/at_shutdown.9 @@ -23,7 +23,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.\" $Id: at_shutdown.9,v 1.1 1996/08/19 02:22:15 julian Exp $ +.\" $Id: at_shutdown.9,v 1.2 1996/08/21 21:43:19 mpp Exp $ .\" " .Dd August 15, 1996 .Os @@ -33,14 +33,14 @@ .Nm rm_at_shutdown .Nd ask that a function be run at shutdown. .Sh SYNOPSIS -.Fd #include .Fd #include +.Fd #include .Ft typedef void \*(lp*bootlist_fn\*(rp \*(lpint, void *\*(rp; .Ft void -.Fn at_shutdown "bootlist_fn func" "void *arg" +.Fn at_shutdown "bootlist_fn func" "void *arg" "int when" .Ft void .Fn rm_at_shutdown "bootlist_fn func" "void *arg" .Sh DESCRIPTION @@ -62,6 +62,16 @@ and .Ar arg arguments as the corresponding call to .Fn at_shutdown . +There are two shutdown queues, one run before the final sync and one after. +The last argument to +.Nm at_shutdown +should be one of +.Em SHUTDOWN_PRE_SYNC +or +.Em SHUTDOWN_POST_SYNC +to specify which queue should be used. +.Nm rm_at_shutdown +will remove an entry from either queue. .Pp .Sh RETURN VALUES .Nm at_shutdown -- cgit v1.1