driver.9 (8fa0b743820f61c661ba5f3ea0e3be0dc137910e) driver.9 (8c63b2db53862c523bc2cb3f7c4d0243018eb3de)
1.\" -*- nroff -*-
2.\"
3.\" Copyright (c) 1998 Doug Rabson
4.\"
5.\" All rights reserved.
6.\"
7.\" This program is free software.
8.\"

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

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$
30.\"
1.\" -*- nroff -*-
2.\"
3.\" Copyright (c) 1998 Doug Rabson
4.\"
5.\" All rights reserved.
6.\"
7.\" This program is free software.
8.\"

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

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$
30.\"
31.Dd November 22, 2011
31.Dd April 30, 2020
32.Dt DRIVER 9
33.Os
34.Sh NAME
35.Nm driver
36.Nd structure describing a device driver
37.Sh SYNOPSIS
38.Bd -literal
39#include <sys/param.h>

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

97The reason the drivers are not held in the device object of the parent
98bus is to handle multiple instances of a given type of bus.
99The
100.Dv DRIVER_MODULE
101macro will also create the devclass with the name of the driver and
102can optionally call extra initialisation code in the driver by
103specifying an extra module event handler and argument as the last two
104arguments.
32.Dt DRIVER 9
33.Os
34.Sh NAME
35.Nm driver
36.Nd structure describing a device driver
37.Sh SYNOPSIS
38.Bd -literal
39#include <sys/param.h>

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

97The reason the drivers are not held in the device object of the parent
98bus is to handle multiple instances of a given type of bus.
99The
100.Dv DRIVER_MODULE
101macro will also create the devclass with the name of the driver and
102can optionally call extra initialisation code in the driver by
103specifying an extra module event handler and argument as the last two
104arguments.
105.Sh HISTORY
106The
107.Nm
108framework first appeared in
109.Fx 2.2.7 .
105.Sh SEE ALSO
106.Xr devclass 9 ,
107.Xr device 9 ,
108.Xr DEVICE_ATTACH 9 ,
109.Xr DEVICE_DETACH 9 ,
110.Xr DEVICE_IDENTIFY 9 ,
111.Xr DEVICE_PROBE 9 ,
112.Xr DEVICE_SHUTDOWN 9 ,
113.Xr DRIVER_MODULE 9
114.Sh AUTHORS
115This manual page was written by
116.An Doug Rabson .
110.Sh SEE ALSO
111.Xr devclass 9 ,
112.Xr device 9 ,
113.Xr DEVICE_ATTACH 9 ,
114.Xr DEVICE_DETACH 9 ,
115.Xr DEVICE_IDENTIFY 9 ,
116.Xr DEVICE_PROBE 9 ,
117.Xr DEVICE_SHUTDOWN 9 ,
118.Xr DRIVER_MODULE 9
119.Sh AUTHORS
120This manual page was written by
121.An Doug Rabson .