device.9 (cefd51ec44292b8783adfd5cb1c5994e40c55595) device.9 (a04dd7481b80786760f38ff3902e24851fc7ef37)
1.\" -*- nroff -*-
2.\"
3.\" Copyright (c) 1998 Doug Rabson
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) 1998 Doug Rabson
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.\" $Id$
29.\" $Id: device.9,v 1.1 1998/09/03 21:52:05 dfr Exp $
30.\"
31.Dd June 16, 1998
32.Dt device 9
33.Os FreeBSD
34.Sh NAME
35.Nm device
36.Nd an abstract representation of a device
30.\"
31.Dd June 16, 1998
32.Dt device 9
33.Os FreeBSD
34.Sh NAME
35.Nm device
36.Nd an abstract representation of a device
37.Sh SYNOPSYS
37.Sh SYNOPSIS
38.Dv typedef struct device *device_t;
39.Sh DESCRIPTION
40.Pp
41The device object represents a piece of hardware attached to the
42system such as an expansion card, the bus which that card is plugged
43into, disk drives attached to the expansion card etc.
44The system defines one device,
45.Dv root_bus
46and all other devices are created dynamically during
47autoconfiguration. Normally devices representing toplevel busses in
48the system (ISA, PCI etc.) will be attached directly to
49.Dv root_bus
38.Dv typedef struct device *device_t;
39.Sh DESCRIPTION
40.Pp
41The device object represents a piece of hardware attached to the
42system such as an expansion card, the bus which that card is plugged
43into, disk drives attached to the expansion card etc.
44The system defines one device,
45.Dv root_bus
46and all other devices are created dynamically during
47autoconfiguration. Normally devices representing toplevel busses in
48the system (ISA, PCI etc.) will be attached directly to
49.Dv root_bus
50and other devices will be added as children of their relavent bus.
50and other devices will be added as children of their relevant bus.
51.Pp
52The devices in a system form a tree. All devices except
53.Dv root_bus
54have a parent (see
55.Xr device_get_parent 9 ).
56In addition, any device can have children attached to it (see
57.Xr device_add_child 9 ,
58.Xr device_add_child_after 9 ,

--- 44 unchanged lines hidden ---
51.Pp
52The devices in a system form a tree. All devices except
53.Dv root_bus
54have a parent (see
55.Xr device_get_parent 9 ).
56In addition, any device can have children attached to it (see
57.Xr device_add_child 9 ,
58.Xr device_add_child_after 9 ,

--- 44 unchanged lines hidden ---