aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/bus_if.m
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2015-10-28 18:53:18 +0000
committerWarner Losh <imp@FreeBSD.org>2015-10-28 18:53:18 +0000
commit83a283cf62c7e1a69f5973aeff4ab00ef437b546 (patch)
tree372f3b709440e018db2187685d696c7a2d60caab /sys/kern/bus_if.m
parent50bc87bc43515f5ed23cd76d5971033d74d6612a (diff)
downloadsrc-83a283cf62c7e1a69f5973aeff4ab00ef437b546.tar.gz
src-83a283cf62c7e1a69f5973aeff4ab00ef437b546.zip
Add a note to the effect that BUS_ADD_CHILD calls
device_add_child_ordered to add the child. device_add_child_ordered doesn't call BUS_ADD_CHILD.
Notes
Notes: svn path=/head/; revision=290117
Diffstat (limited to 'sys/kern/bus_if.m')
-rw-r--r--sys/kern/bus_if.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/bus_if.m b/sys/kern/bus_if.m
index cce997cff79f..bafa448488cf 100644
--- a/sys/kern/bus_if.m
+++ b/sys/kern/bus_if.m
@@ -209,7 +209,9 @@ METHOD void driver_added {
* For busses which use use drivers supporting DEVICE_IDENTIFY() to
* enumerate their devices, this method is used to create new
* device instances. The new device will be added after the last
- * existing child with the same order.
+ * existing child with the same order. Implementations of bus_add_child
+ * call device_add_child_ordered to add the child and often add
+ * a suitable ivar to the device specific to that bus.
*
* @param _dev the bus device which will be the parent of the
* new child device