FreeBSD/sys/kern/subr_bus.c
/**
 * @brief Enumerate all hinted devices for this bus.
 *
 * Walks through the hints for this bus and calls the bus_hinted_child
 * routine for each one it fines.  It searches first for the specific
 * bus that's being probed for hinted children (eg isa0), and then for
 * generic children (eg isa).
 *
 * @param	dev	bus device to enumerate
 */
@brief Enumerate all hinted devices for this bus.
Walks through the hints for this bus and calls the bus_hinted_child
routine for each one it fines.  It searches first for the specific
bus that's being probed for hinted children , and then for
generic children .

@param       dev     bus device to enumerate
@brief Enumerate all hinted devices for this bus . Walks through the hints for this bus and calls the bus_hinted_child routine for each one it fines . It searches first for the specific bus that ' s being probed for hinted children and then for generic children . @param dev bus device to enumerate
void
bus_enumerate_hinted_children(device_t bus)
{
	int i;
	const char *dname, *busname;
	int dunit;
	busname = device_get_nameunit(bus);
	i = 0;
	while (resource_find_match(&i, &dname, &dunit, "at", busname) == 0)
		BUS_HINTED_CHILD(bus, dname, dunit);
	busname = device_get_name(bus);
	i = 0;
	while (resource_find_match(&i, &dname, &dunit, "at", busname) == 0)
		BUS_HINTED_CHILD(bus, dname, dunit);
}
void bus_enumerate_hinted_children ( device_t bus ) { int i ; const char * dname , * busname ; int dunit ; busname = device_get_nameunit ( bus ) ; i = 0 ; while ( resource_find_match ( & i , & dname , & dunit , " " , busname ) == 0 ) BUS_HINTED_CHILD ( bus , dname , dunit ) ; busname = device_get_name ( bus ) ; i = 0 ; while ( resource_find_match ( & i , & dname , & dunit , " " , busname ) == 0 ) BUS_HINTED_CHILD ( bus , dname , dunit ) ; }
@brief Enumerate all hinted devices for this bus.
@brief Enumerate all hinted devices for this bus .
/*
	 * enumerate all devices on the specific bus
	 */ /*
	 * and all the generic ones.
	 */