FreeBSD/sys/kern/subr_bus.c
/**
 * @brief Set the parent of a devclass
 *
 * The parent class is normally initialised automatically by
 * DRIVER_MODULE().
 *
 * @param dc		the devclass to edit
 * @param pdc		the new parent devclass
 */
@brief Set the parent of a devclass
The parent class is normally initialised automatically by
DRIVER_MODULE().

@param dc            the devclass to edit
@param pdc           the new parent devclass
@brief Set the parent of a devclass The parent class is normally initialised automatically by DRIVER_MODULE () . @param dc the devclass to edit @param pdc the new parent devclass
void
devclass_set_parent(devclass_t dc, devclass_t pdc)
{
	dc->parent = pdc;
}
void devclass_set_parent ( devclass_t dc , devclass_t pdc ) { dc -> parent = pdc ; }
@brief Set the parent of a devclass
 The parent class is normally initialised automatically by
 DRIVER_MODULE().
@brief Set the parent of a devclass The parent class is normally initialised automatically by DRIVER_MODULE () .