Deleted Added
full compact
DRIVER_MODULE.9 (65977) DRIVER_MODULE.9 (74109)
1.\" -*- nroff -*-
2.\"
3.\" Copyright (c) 2000 Alexander Langer
4.\"
5.\" All rights reserved.
6.\"
7.\" This program is free software.
8.\"

--- 12 unchanged lines hidden (view full) ---

21.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
22.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28.\"
1.\" -*- nroff -*-
2.\"
3.\" Copyright (c) 2000 Alexander Langer
4.\"
5.\" All rights reserved.
6.\"
7.\" This program is free software.
8.\"

--- 12 unchanged lines hidden (view full) ---

21.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
22.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28.\"
29.\" $FreeBSD: head/share/man/man9/DRIVER_MODULE.9 65977 2000-09-17 12:15:12Z alex $
29.\" $FreeBSD: head/share/man/man9/DRIVER_MODULE.9 74109 2001-03-11 17:07:20Z alex $
30.\"
31.Dd May 16, 2000
32.Dt DRIVER_MODULE 9
33.Os
34.Sh NAME
35.Nm DRIVER_MODULE
36.Nd kernel driver declaration macro
37.Sh SYNOPSIS
30.\"
31.Dd May 16, 2000
32.Dt DRIVER_MODULE 9
33.Os
34.Sh NAME
35.Nm DRIVER_MODULE
36.Nd kernel driver declaration macro
37.Sh SYNOPSIS
38.Fd #include <sys/module.h>
38.Fd #include <sys/bus.h>
39.Fd #include <sys/bus.h>
39.Fn DRIVER_MODULE "name" "busname" "driver_t driver" "devclass_t devclass" "int (*evh) (struct module *, int, void *)" "void *arg"
40.Fn DRIVER_MODULE "name" "busname" "driver_t driver" "devclass_t devclass" "modeventhand_t evh" "void *arg"
40.Sh DESCRIPTION
41The
42.Fn DRIVER_MODULE
43macro declares a kernel driver.
44.Fn DRIVER_MODULE
45expands to the real driver declaration, where the phrase
46.Fa name
47is used as the naming prefix for the driver and its functions.

--- 31 unchanged lines hidden (view full) ---

79The
80.Fa devclass
81argument contains the kernel-internal information about the device,
82which will be used wthin the kernel driver module.
83.Pp
84The
85.Fa evh
86argument is the event handler which is called when the driver (or module)
41.Sh DESCRIPTION
42The
43.Fn DRIVER_MODULE
44macro declares a kernel driver.
45.Fn DRIVER_MODULE
46expands to the real driver declaration, where the phrase
47.Fa name
48is used as the naming prefix for the driver and its functions.

--- 31 unchanged lines hidden (view full) ---

80The
81.Fa devclass
82argument contains the kernel-internal information about the device,
83which will be used wthin the kernel driver module.
84.Pp
85The
86.Fa evh
87argument is the event handler which is called when the driver (or module)
87is loaded or unloaded.
88is loaded or unloaded (see
89.Xr module 9 ) .
88.Pp
89The
90.Fa arg
91is unused at this time and should be a
92.Dv NULL
93pointer.
94.Sh SEE ALSO
95.Xr driver 9 ,
90.Pp
91The
92.Fa arg
93is unused at this time and should be a
94.Dv NULL
95pointer.
96.Sh SEE ALSO
97.Xr driver 9 ,
96.Xr device 9
98.Xr device 9 ,
99.Xr module 9
97.Sh AUTHORS
98This manual page was written by
99.An Alexander Langer Aq alex@FreeBSD.org .
100.Sh AUTHORS
101This manual page was written by
102.An Alexander Langer Aq alex@FreeBSD.org .