aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2004-05-13 20:54:49 +0000
committerWarner Losh <imp@FreeBSD.org>2004-05-13 20:54:49 +0000
commit1c1bc2f7f7855f8f31ce30a503ffc02981049002 (patch)
tree4377367b38e57a2229b50243b05f8eba8d2bdc96 /share
parenta1013c5773a2f0b06684f3fe2dcc0739faa5a866 (diff)
downloadsrc-1c1bc2f7f7855f8f31ce30a503ffc02981049002.tar.gz
src-1c1bc2f7f7855f8f31ce30a503ffc02981049002.zip
Add some verbage over the difference between BUS_ADD_CHILD and
device_add_child. The former calls the latter. Pointed out by: jhb
Notes
Notes: svn path=/head/; revision=129193
Diffstat (limited to 'share')
-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 8f40c751886c..c1bf9f7dfe0f 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 ,