Trait kernel::drm::driver::Driver

source ·
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§

source

type Data: Sync + Send

Context data associated with the DRM driver

source

type Object: AllocImpl

The type used to manage memory for this driver.

source

type File: DriverFile

The type used to represent a DRM File (client)

Required Associated Constants§

source

const USE_VTABLE_ATTR: ()

A marker to prevent implementors from forgetting to use #[vtable] attribute when implementing this trait.

source

const INFO: DriverInfo

Driver metadata

source

const IOCTLS: &'static [DrmIoctlDescriptor]

IOCTL list. See kernel::drm::ioctl::declare_drm_ioctls!{}.

Object Safety§

This trait is not object safe.

Implementors§