FreeBSD/sys/kern/subr_bus.c
/**
 * @brief Set the devclass of a device and mark the devclass fixed.
 * @see device_set_devclass()
 */
@brief Set the devclass of a device and mark the devclass fixed.
@brief Set the devclass of a device and mark the devclass fixed .
int
device_set_devclass_fixed(device_t dev, const char *classname)
{
	int error;
	if (classname == NULL)
		return (EINVAL);
	error = device_set_devclass(dev, classname);
	if (error)
		return (error);
	dev->flags |= DF_FIXEDCLASS;
	return (0);
}
int device_set_devclass_fixed ( device_t dev , const char * classname ) { int error ; if ( classname == NULL ) return ( EINVAL ) ; error = device_set_devclass ( dev , classname ) ; if ( error ) return ( error ) ; dev -> flags |= DF_FIXEDCLASS ; return ( 0 ) ; }
@brief Set the devclass of a device and mark the devclass fixed.
@brief Set the devclass of a device and mark the devclass fixed .