FreeBSD/sys/kern/subr_bus.c
/**
 * @brief Create a device class
 *
 * If a device class with the name @p classname exists, return it,
 * otherwise create and return a new device class.
 *
 * @param classname	the devclass name to find or create
 */
@brief Create a device class
If a device class with the name @p classname exists, return it,
otherwise create and return a new device class.

@param classname     the devclass name to find or create
@brief Create a device class If a device class with the name @p classname exists return it otherwise create and return a new device class . @param classname the devclass name to find or create
devclass_t
devclass_create(const char *classname)
{
	return (devclass_find_internal(classname, NULL, TRUE));
}
devclass_t devclass_create ( const char * classname ) { return ( devclass_find_internal ( classname , NULL , TRUE ) ) ; }
@brief Create a device class
 If a device class with the name @p classname exists, return it,
 otherwise create and return a new device class.
@brief Create a device class If a device class with the name @p classname exists return it otherwise create and return a new device class .