summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2006-09-11 22:17:18 +0000
committerimp <imp@FreeBSD.org>2006-09-11 22:17:18 +0000
commite2689a926c8bedb36b365e21feeb9230e5c19e9e (patch)
tree5d77b7968e4cf4cf25f529da0364f1bdfe2de21b
parent4c318f22c8649960aad848db8c73e68e8a7981f4 (diff)
downloadFreeBSD-src-e2689a926c8bedb36b365e21feeb9230e5c19e9e.zip
FreeBSD-src-e2689a926c8bedb36b365e21feeb9230e5c19e9e.tar.gz
Add note about identify routines needing to use BUS_ADD_CHILD rather
than device_add_child. The latter is only for busses adding children, not children drivers telling a bus that they have an instance...
-rw-r--r--share/man/man9/device_add_child.96
1 files changed, 6 insertions, 0 deletions
diff --git a/share/man/man9/device_add_child.9 b/share/man/man9/device_add_child.9
index 09f2005..ba162d0 100644
--- a/share/man/man9/device_add_child.9
+++ b/share/man/man9/device_add_child.9
@@ -108,9 +108,15 @@ have already added the instance.
Authors of bus drivers must likewise be careful when adding children
when they are loaded and unloaded to avoid duplication of children
devices.
+.Pp
+Identify routines should use
+.Xr BUS_ADD_CHILD 9
+instead of
+.Xr device_add_child 9 .
.Sh RETURN VALUES
The new device if successful, NULL otherwise.
.Sh SEE ALSO
+.Xr BUS_ADD_CHILD 9 ,
.Xr device 9 ,
.Xr device_find_child 9 ,
.Xr DEVICE_IDENTIFY 9
OpenPOWER on IntegriCloud