Expand description
Modesetting operations that the DRM subsystem exposes.
Summary
The DRM subsystem provides Kernel Modesetting (KMS) functionality by exposing the following resource types:
-
FrameBuffer - Specific to an individual process, these wrap around generic GPU buffers so that they can be attached to a Plane.
-
Planes - Dedicated memory objects which contain a buffer that can then be scanned out by a CRTC. There exist a few different types of planes depending on the use case.
-
CRTC - Scanout engines that read pixel data from a Plane and sends it to a Connector. Each CRTC has at least one Primary Plane.
-
Connector - Represents the physical output, such as a DisplayPort or VGA connector.
-
Encoder - Encodes pixel data from a CRTC into something a Connector can understand.
Further details on each resource can be found in their respective modules.
Usage
To begin using modesetting functionality, the Device trait
must be implemented on top of the basic super::Device trait.
Modules
Structs
ResourceHandles to determine the set of
Crtcs that can attach to a specific encoder.Events of a device. Create via Device::receive_events().ResourceHandles that a
Device exposes. Excluding Plane resources.