diff options
Diffstat (limited to 'share/man/man9')
-rw-r--r-- | share/man/man9/at_shutdown.9 | 16 |
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 |