summaryrefslogtreecommitdiffstats
path: root/share/man
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1996-08-22 03:50:33 +0000
committerjulian <julian@FreeBSD.org>1996-08-22 03:50:33 +0000
commite5048c6cd53c81e64bc5beaf9cc05549039c4188 (patch)
tree36f241a22c1b649e9fd947dfe20092d354b2dfe0 /share/man
parent2da1db6ea869d363d2b95c24f7947a1905a0183d (diff)
downloadFreeBSD-src-e5048c6cd53c81e64bc5beaf9cc05549039c4188.zip
FreeBSD-src-e5048c6cd53c81e64bc5beaf9cc05549039c4188.tar.gz
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
Diffstat (limited to 'share/man')
-rw-r--r--share/man/man9/at_shutdown.916
1 files changed, 13 insertions, 3 deletions
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 <sys/systm.h>
.Fd #include <sys/reboot.h>
+.Fd #include <sys/systm.h>
.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
OpenPOWER on IntegriCloud