aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorAlexander Langer <alex@FreeBSD.org>2001-03-11 17:07:20 +0000
committerAlexander Langer <alex@FreeBSD.org>2001-03-11 17:07:20 +0000
commit3dca0e13fc6d13dcb08e0ef2d1dc0c59b492edc5 (patch)
tree75c928bf0929a8d97f268af946311138f6f1ba43 /share
parenta8ed195d01210c43a3b39494767fb0002909995d (diff)
downloadsrc-3dca0e13fc6d13dcb08e0ef2d1dc0c59b492edc5.tar.gz
src-3dca0e13fc6d13dcb08e0ef2d1dc0c59b492edc5.zip
Use type of modeventhand_t for the event handler (defined in module.h).
Add a reference to module(9) for more info about the event handler.
Notes
Notes: svn path=/head/; revision=74109
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/DRIVER_MODULE.99
1 files changed, 6 insertions, 3 deletions
diff --git a/share/man/man9/DRIVER_MODULE.9 b/share/man/man9/DRIVER_MODULE.9
index ad45ef7e8a44..dbf573878f48 100644
--- a/share/man/man9/DRIVER_MODULE.9
+++ b/share/man/man9/DRIVER_MODULE.9
@@ -35,8 +35,9 @@
.Nm DRIVER_MODULE
.Nd kernel driver declaration macro
.Sh SYNOPSIS
+.Fd #include <sys/module.h>
.Fd #include <sys/bus.h>
-.Fn DRIVER_MODULE "name" "busname" "driver_t driver" "devclass_t devclass" "int (*evh) (struct module *, int, void *)" "void *arg"
+.Fn DRIVER_MODULE "name" "busname" "driver_t driver" "devclass_t devclass" "modeventhand_t evh" "void *arg"
.Sh DESCRIPTION
The
.Fn DRIVER_MODULE
@@ -84,7 +85,8 @@ which will be used wthin the kernel driver module.
The
.Fa evh
argument is the event handler which is called when the driver (or module)
-is loaded or unloaded.
+is loaded or unloaded (see
+.Xr module 9 ) .
.Pp
The
.Fa arg
@@ -93,7 +95,8 @@ is unused at this time and should be a
pointer.
.Sh SEE ALSO
.Xr driver 9 ,
-.Xr device 9
+.Xr device 9 ,
+.Xr module 9
.Sh AUTHORS
This manual page was written by
.An Alexander Langer Aq alex@FreeBSD.org .