*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: BUS_ADD_CHILD | Section: 9 | Source: FreeBSD | File: BUS_ADD_CHILD.9.gz
BUS_ADD_CHILD(9) FreeBSD Kernel Developer's Manual BUS_ADD_CHILD(9) NAME BUS_ADD_CHILD - add a device node to the tree with a given priority SYNOPSIS #include <sys/param.h> #include <sys/bus.h> device_t BUS_ADD_CHILD(device_t dev, int order, const char *name, int unit); DESCRIPTION The BUS_ADD_CHILD() 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. Buses implementing BUS_ADD_CHILD() 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 device_add_child(9). BUS_ADD_CHILD() instead calls device_add_child(9). A panic will result when called for a bus that does not implement BUS_ADD_CHILD(). Some buses require a special bus-specific routine to be called instead of BUS_ADD_CHILD(). RETURN VALUES The BUS_ADD_CHILD() method returns device_t added to the tree, or NULL to indicate failure. SEE ALSO device(9), device_add_child(9), driver(9) AUTHORS This manual page was written by M. Warner Losh. FreeBSD 14.1-RELEASE-p8 April 8, 2018 FreeBSD 14.1-RELEASE-p8

Navigation Options