Skip to main content

Crate drmkit_modeset

Crate drmkit_modeset 

Source
Expand description

Mode selection and page-flip dispatch for drmkit.

Port of src/modeset/ from drm-cxx @ dc2915b, less atomic.*, which lives in drmkit-core alongside the property cache it is built from.

§Invariant 3

PageFlip::dispatch never reports an interrupted wait. EINTR is retried internally, and a bounded wait recomputes its remaining budget from a monotonic clock across retries, so a signal storm cannot stretch the wait past what was asked for. See that method for the Rust-specific hazard this guards against.

Structs§

PageFlip
Dispatches page-flip events, and optionally foreign event sources, from one epoll instance.
PageFlipEvent
A completed page flip.

Enums§

ModesetError
Errors from mode selection and page-flip dispatch.
Timeout
How a dispatch wait is bounded.

Traits§

ModeInfo
Inspection helpers for a Mode.

Functions§

select_mode
Pick the mode closest to a target resolution.
select_preferred_mode
Pick the connector’s preferred mode.

Type Aliases§

Handler
Called when a page-flip event completes.
Result
Convenience alias.
SourceCallback
Called when a foreign source descriptor becomes readable.