Skip to content

Commit 29d13f3

Browse files
committed
newbus: Document new DEVICE_UNIT_ANY
In the past, device_add_child took a -1 to mean any unit. Document it now taking DEVICE_UNIT_ANY. Sponsored by: Netflix
1 parent 22ea1ec commit 29d13f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

share/man/man9/device_add_child.9

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ arguments specify the name and unit number of the device.
5151
If the name is unknown then the caller should pass
5252
.Dv NULL .
5353
If the unit is unknown then the caller should pass
54-
.Dv -1
54+
.Dv DEVICE_UNIT_ANY
5555
and the system will choose the next available unit number.
5656
.Pp
5757
The name of the device is used to determine which drivers might be
@@ -70,7 +70,7 @@ be specified as the device name.
7070
.Pp
7171
Normally unit numbers will be chosen automatically by the system and a
7272
unit number of
73-
.Dv -1
73+
.Dv DEVICE_UNIT_ANY
7474
should be given.
7575
When a specific unit number is desired (e.g.,\& for wiring a particular
7676
piece of hardware to a pre-configured unit number), that unit should

0 commit comments

Comments
 (0)