FreeBSD/sys/kern/subr_bus.c
/**
 * @brief Create a new device
 *
 * This creates a new device and adds it as a child of an existing
 * parent device. The new device will be added after the last existing
 * child with order zero.
 *
 * @param dev		the device which will be the parent of the
 *			new child device
 * @param name		devclass name for new device or @c NULL if not
 *			specified
 * @param unit		unit number for new device or @c -1 if not
 *			specified
 *
 * @returns		the new device
 */
@brief Create a new device
This creates a new device and adds it as a child of an existing
parent device. The new device will be added after the last existing
child with order zero.



@returns             the new device
@brief Create a new device This creates a new device and adds it as a child of an existing parent device . The new device will be added after the last existing child with order zero . @returns the new device
device_t
device_add_child(device_t dev, const char *name, int unit)
{
	return (device_add_child_ordered(dev, 0, name, unit));
}
device_t device_add_child ( device_t dev , const char * name , int unit ) { return ( device_add_child_ordered ( dev , 0 , name , unit ) ) ; }
@brief Create a new device
 This creates a new device and adds it as a child of an existing
 parent device.
@brief Create a new device This creates a new device and adds it as a child of an existing parent device .