diff --git a/share/man/man9/at_exit.9 b/share/man/man9/at_exit.9 index 3d30d246710d..c1981ff5b0ab 100644 --- a/share/man/man9/at_exit.9 +++ b/share/man/man9/at_exit.9 @@ -34,10 +34,8 @@ .Nd ask that a function be run at exit. .Sh SYNOPSIS .Fd #include - .Ft typedef void \*(lp*exitlist_fn\*(rp \*(lpstruct proc *\*(rp; - .Ft int .Fn at_exit "exitlist_fn func" .Ft int @@ -48,27 +46,28 @@ The facility allows a kernel module to ensure that it is notified at any process exit. The function -.Ar func +.Fa func is called with the a pointer to the exiting process's proc structure. .Pp If the requirement for notification is removed, then the function -.Nm rm_at_exit +.Fn rm_at_exit must be called with the exact -.Ar func +.Fa func argument as the corresponding call to .Fn at_exit . .Pp .Sh RETURN VALUES -.Nm at_exit -returns an errno, 0 meaning success. -.Nm rm_at_exit -returns the number of items removed (should be 0 or 1). +The +.Fa at_exit +function returns an errno, 0 meaning success. The +.Fn rm_at_exit +function returns the number of items removed (should be 0 or 1). .Sh SEE ALSO .Xr _exit 2 .Sh HISTORY The -.Nm at_exit -appeared in +.Fn at_exit +function appeared in .Fx 2.2 . .Sh BUGS Since the exit queue is not sorted diff --git a/share/man/man9/at_fork.9 b/share/man/man9/at_fork.9 index 3c560de018a9..a22b486dc22d 100644 --- a/share/man/man9/at_fork.9 +++ b/share/man/man9/at_fork.9 @@ -34,10 +34,7 @@ .Nd ask that a function be run at fork. .Sh SYNOPSIS .Fd #include - .Ft typedef void \*(lp*forklist_fn\*(rp \*(lpstruct proc*, struct proc*, int\*(rp; - - .Ft void .Fn at_fork "forklist_fn func" .Ft void @@ -48,7 +45,7 @@ The facility allows a kernel module to ensure that it is notified at any process fork. The function -.Ar func +.Fa func is called with the a pointer to the forking process's proc structure, a pointer to the child's process structure and a flag word, as used in @@ -56,23 +53,23 @@ as used in to indicate the type of fork. .Pp If the requirement for notification is removed, then the function -.Nm rm_at_fork +.Fn rm_at_fork must be called with the exact -.Ar func +.Fa func argument as the corresponding call to .Fn at_fork . .Pp .Sh RETURN VALUES -.Nm at_fork +.Fn at_fork returns an errno, 0 meaning success. -.Nm rm_at_fork +.Fn rm_at_fork returns the number of items removed (should be 0 or 1). .Sh SEE ALSO .Xr fork 2 .Sh HISTORY The -.Nm at_fork -appeared in +.Fn at_fork +function appeared in .Fx 2.2 . .Sh BUGS Since the fork queue is not sorted diff --git a/share/man/man9/at_shutdown.9 b/share/man/man9/at_shutdown.9 index bf198dad5ce5..8544d31e6b61 100644 --- a/share/man/man9/at_shutdown.9 +++ b/share/man/man9/at_shutdown.9 @@ -48,34 +48,34 @@ The facility allows a kernel module to ensure that it is notified at system shutdown. The function -.Ar func +.Fa func is called with the flags indicating boot type, and the opaque argument -.Ar arg +.Fa arg when the system is shut down. .Pp If the requirement for notification is removed, then the function -.Nm rm_at_shutdown +.Fn rm_at_shutdown must be called with the exact -.Ar func +.Fa func and -.Ar arg +.Fa 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 +.Fa at_shutdown should be one of -.Em SHUTDOWN_PRE_SYNC +.Dv SHUTDOWN_PRE_SYNC or -.Em SHUTDOWN_POST_SYNC +.Dv SHUTDOWN_POST_SYNC to specify which queue should be used. -.Nm rm_at_shutdown +.Fn rm_at_shutdown will remove an entry from either queue. .Pp .Sh RETURN VALUES -.Nm at_shutdown +.Fn at_shutdown returns an error code, 0 meaning success. -.Nm rm_at_shutdown +.Fn rm_at_shutdown returns the number of items removed (should be 0 or 1). .Sh SEE ALSO .Xr reboot 2 ,