Deleted Added
full compact
device_add_child.9 (108257) device_add_child.9 (121380)
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.\" $FreeBSD: head/share/man/man9/device_add_child.9 108257 2002-12-24 13:41:48Z ru $
29.\" $FreeBSD: head/share/man/man9/device_add_child.9 121380 2003-10-23 01:54:06Z hmp $
30.\"
31.Dd June 16, 1998
32.Dt DEVICE_ADD_CHILD 9
33.Os
34.Sh NAME
35.Nm device_add_child ,
36.Nm device_add_child_ordered
37.Nd "add a new device as a child of an existing device"

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

52arguments specify the name and unit number of the device.
53If the name is unknown then the caller should pass
54.Dv NULL .
55If the unit is unknown then the caller should pass
56.Dv -1
57and the system will choose the next available unit number.
58.Pp
59The name of the device is used to determine which drivers might be
30.\"
31.Dd June 16, 1998
32.Dt DEVICE_ADD_CHILD 9
33.Os
34.Sh NAME
35.Nm device_add_child ,
36.Nm device_add_child_ordered
37.Nd "add a new device as a child of an existing device"

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

52arguments specify the name and unit number of the device.
53If the name is unknown then the caller should pass
54.Dv NULL .
55If the unit is unknown then the caller should pass
56.Dv -1
57and the system will choose the next available unit number.
58.Pp
59The name of the device is used to determine which drivers might be
60appropriate for the device. If a name is specified then only drivers
61of that name are probed. If no name is given then all drivers for the
60appropriate for the device.
61If a name is specified then only drivers of that name are probed.
62If no name is given then all drivers for the
62owning bus are probed.
63.Pp
64This allows busses which can uniquely identify device instances (such
65as PCI) to allow each driver to check each device instance for a
63owning bus are probed.
64.Pp
65This allows busses which can uniquely identify device instances (such
66as PCI) to allow each driver to check each device instance for a
66match. For busses which rely on supplied probe hints where only one
67match.
68For busses which rely on supplied probe hints where only one
67driver can have a change of probing the device, the driver name should
68specified as the device name.
69.Pp
70Normally unit numbers will be chosen automatically by the system and a
71unit number of
72.Dv -1
73should be given.
74When a specific unit number is desired (e.g. for wiring a particular
75piece of hardware to a pre-configured unit number), that unit should
69driver can have a change of probing the device, the driver name should
70specified as the device name.
71.Pp
72Normally unit numbers will be chosen automatically by the system and a
73unit number of
74.Dv -1
75should be given.
76When a specific unit number is desired (e.g. for wiring a particular
77piece of hardware to a pre-configured unit number), that unit should
76be passed. If the specified unit number is already allocated, a new
78be passed.
79If the specified unit number is already allocated, a new
77unit will be allocated and a diagnostic message printed.
78.Pp
79If the devices attached to a bus must be probed in a specific order
80(e.g. for the ISA bus some devices are sensitive to failed probe attempts
81of unrelated drivers and therefore must be probed first),
82the
83.Fa order
84argument of

--- 14 unchanged lines hidden ---
80unit will be allocated and a diagnostic message printed.
81.Pp
82If the devices attached to a bus must be probed in a specific order
83(e.g. for the ISA bus some devices are sensitive to failed probe attempts
84of unrelated drivers and therefore must be probed first),
85the
86.Fa order
87argument of

--- 14 unchanged lines hidden ---