mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-01 00:18:15 +01:00
Style fixes.
This commit is contained in:
parent
a99965e29d
commit
6e768644e1
@ -34,10 +34,8 @@
|
||||
.Nd ask that a function be run at exit.
|
||||
.Sh SYNOPSIS
|
||||
.Fd #include <sys/systm.h>
|
||||
|
||||
.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
|
||||
|
@ -34,10 +34,7 @@
|
||||
.Nd ask that a function be run at fork.
|
||||
.Sh SYNOPSIS
|
||||
.Fd #include <sys/systm.h>
|
||||
|
||||
.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
|
||||
|
@ -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 ,
|
||||
|
Loading…
Reference in New Issue
Block a user