sys/kern/subr_bus.c
/**
 * @brief Return non-zero if the device currently has a driver
 * attached to it
 */
@brief Return non-zero if the device currently has a driver
attached to it
@brief Return non - zero if the device currently has a driver attached to it
int
device_is_attached(device_t dev)
{
	return (dev->state >= DS_ATTACHED);
}
int device_is_attached ( device_t dev ) { return ( dev -> state >= DS_ATTACHED ) ; }
@brief Return non-zero if the device currently has a driver
 attached to it
@brief Return non - zero if the device currently has a driver attached to it