summaryrefslogtreecommitdiffstats
path: root/share/man/man9/BUS_ADD_CHILD.9
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2004-05-13 20:54:49 +0000
committerimp <imp@FreeBSD.org>2004-05-13 20:54:49 +0000
commit73b8b7698f89ce1ef44027c206603b58da516901 (patch)
tree4377367b38e57a2229b50243b05f8eba8d2bdc96 /share/man/man9/BUS_ADD_CHILD.9
parent8bae5ad13539f71712d77119314b790120313a7d (diff)
downloadFreeBSD-src-73b8b7698f89ce1ef44027c206603b58da516901.zip
FreeBSD-src-73b8b7698f89ce1ef44027c206603b58da516901.tar.gz
Add some verbage over the difference between BUS_ADD_CHILD and
device_add_child. The former calls the latter. Pointed out by: jhb
Diffstat (limited to 'share/man/man9/BUS_ADD_CHILD.9')
-rw-r--r--share/man/man9/BUS_ADD_CHILD.911
1 files changed, 11 insertions, 0 deletions
diff --git a/share/man/man9/BUS_ADD_CHILD.9 b/share/man/man9/BUS_ADD_CHILD.9
index 8f40c75..c1bf9f7 100644
--- a/share/man/man9/BUS_ADD_CHILD.9
+++ b/share/man/man9/BUS_ADD_CHILD.9
@@ -44,6 +44,17 @@ Used by the driver identify routine to add devices to the tree.
Please see
.Xr device_add_child 9
for more details.
+The interface is the same as
+.Fn device_add_child
+however, the bus'
+.Ft BUS_ADD_CHILD
+is called.
+.Pp
+Busses implementing
+.Ft BUS_ADD_CHILD
+should insert the device into the tree using
+.Fn device_add_child
+before adding things such as their own ivars and resource lists to the device.
.Sh SEE ALSO
.Xr device 9 ,
.Xr device_add_child 9 ,
OpenPOWER on IntegriCloud