sys/kern/subr_bus.c
/**
 * @brief Return the name of the device's devclass or @c NULL if there
 * is none.
 */
@brief Return the name of the device's devclass or @c NULL if there
is none.
@brief Return the name of the device ' s devclass or @c NULL if there is none .
const char *
device_get_name(device_t dev)
{
	if (dev != NULL && dev->devclass)
		return (devclass_get_name(dev->devclass));
	return (NULL);
}
const char * device_get_name ( device_t dev ) { if ( dev != NULL && dev -> devclass ) return ( devclass_get_name ( dev -> devclass ) ) ; return ( NULL ) ; }
@brief Return the name of the device's devclass or @c NULL if there
 is none.
@brief Return the name of the device ' s devclass or @c NULL if there is none .