pub trait Driver {
type Data: Sync + Send;
type Object: AllocImpl;
type File: DriverFile;
const USE_VTABLE_ATTR: ();
const INFO: DriverInfo;
const IOCTLS: &'static [DrmIoctlDescriptor];
}
Expand description
The DRM Driver
trait.
This trait must be implemented by drivers in order to create a struct drm_device
and struct drm_driver
to be registered in the DRM subsystem.
Required Associated Types§
sourcetype File: DriverFile
type File: DriverFile
The type used to represent a DRM File (client)
Required Associated Constants§
sourceconst USE_VTABLE_ATTR: ()
const USE_VTABLE_ATTR: ()
A marker to prevent implementors from forgetting to use #[vtable]
attribute when implementing this trait.
sourceconst INFO: DriverInfo
const INFO: DriverInfo
Driver metadata
sourceconst IOCTLS: &'static [DrmIoctlDescriptor]
const IOCTLS: &'static [DrmIoctlDescriptor]
IOCTL list. See kernel::drm::ioctl::declare_drm_ioctls!{}
.
Object Safety§
This trait is not object safe.