table of contents
|BUS_ADD_CHILD(9)||Kernel Developer's Manual||BUS_ADD_CHILD(9)|
add a device node to the tree with a given
dev, int order,
const char *name,
method is used by the driver identify routine to add devices to the tree. It
can also be used to add children to buses that implement this routine in
other contexts, although the behavior is bus specific. Please see
device_add_child(9) for more details. The interface is the
same as device_add_child(9) however, the bus'
BUS_ADD_CHILD() is called.
should insert the device into the tree using
device_add_child(9) before adding things such as their own
ivars and resource lists to the device.
BUS_ADD_CHILD() is not called by
BUS_ADD_CHILD() instead calls
A panic will result when called for a bus
that does not implement
Some buses require a special bus-specific routine to be called instead of
BUS_ADD_CHILD() method returns
device_t added to the tree, or
NULL to indicate failure.
This manual page was written by M. Warner Losh.
|April 8, 2018||Debian|