Manpage of 'BUS_ADD_CHILD' on UHLU - BSD System Documentation,
Programming Reference, Manual Pages and Source Code
All manual pages         All RFC pages
Common page
for BUS_ADD_CHILD
Other pages
for BUS_ADD_CHILD
More pages
containing BUS_ADD_CHILD

Section 9 manual page or howto for 'BUS_ADD_CHILD'  

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>

     int
     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.  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.

     Busses 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.

RETURN VALUES
     The BUS_ADD_CHILD() method returns device_t added to the tree, or NULL.

SEE ALSO
     device(9), device_add_child(9), driver(9)

AUTHORS
     This manual page was written by M. Warner Losh.

FreeBSD 7.2			 May 13, 2004			   FreeBSD 7.2

NAME - SYNOPSIS - DESCRIPTION - RETURN VALUES - SEE ALSO - AUTHORS -  
All manual pages         All RFC pages
Common page
for BUS_ADD_CHILD
Other pages
for BUS_ADD_CHILD
More pages
containing BUS_ADD_CHILD
A random manual page         All manual pages        All RFC pages