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 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!{}.
Required Associated Types§
Sourcetype File: DriverFile
 
type File: DriverFile
The type used to represent a DRM File (client)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.