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§
- Page
Flip - Dispatches page-flip events, and optionally foreign event sources, from one epoll instance.
- Page
Flip Event - A completed page flip.
Enums§
- Modeset
Error - Errors from mode selection and page-flip dispatch.
- Timeout
- How a dispatch wait is bounded.
Traits§
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.
- Source
Callback - Called when a foreign source descriptor becomes readable.