Use a .Bl -tag list instead of plain .Pp paragraphs for describing the

macro arguments expected by SYSCALL_MODULE().

MFC after:	3 days
This commit is contained in:
Giorgos Keramidas 2005-01-07 09:02:40 +00:00
parent 18746c5893
commit 66700df04f

View File

@ -28,7 +28,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd April 27, 2001
.Dd January 7, 2005
.Dt SYSCALL_MODULE 9
.Os
.Sh NAME
@ -49,25 +49,29 @@ macro declares a new syscall.
expands into a kernel module declaration named as
.Fa name .
.Pp
.Fa offset
is a pointer to an
The rest of the arguments expected by this macro are:
.Bl -tag -width ".Fa new_sysent"
.It Fa offset
A pointer to an
.Vt int
which saves the offset in
.Vt "struct sysent"
where the
syscall is allocated.
.Pp
.Fa new_sysent
specifies the function implementing the syscall and the number of
arguments this function needs (see
where the syscall is allocated.
.It Fa new_sysent
The function implementing the syscall and the number of arguments this
function needs (see
.In sys/sysent.h ) .
.Pp
.Fa evh
is a pointer to the kernel module event handler function with the argument
.It Fa evh
A pointer to the kernel module event handler function with the argument
.Fa arg .
Please refer to
.Xr module 9
for more information.
.It Fa arg
The argument passed to the callback functions of the
.Fa evh
event handler when it is called.
.El
.Sh EXAMPLES
A minimal example for a syscall module can be found in
.Pa /usr/share/examples/kld/syscall/module/syscall.c .