Module drm::control::syncobj

source ·
Expand description

§SyncObj

A SyncObj is a binding point for the DRM subsystem to attach single-use fences which are signalled when a device task completes. They are typically provided as optional arguments to device-specific command submission IOCTLs. In practice, they are used to implement Vulkan fence objects.

After a submission IOCTL sets a fence into a SyncObj, it may be exported as a sync file descriptor. This sync file may be epoll()’d for EPOLLIN to implement asynchronous waiting on multiple events. This file descriptor is also compatible with tokio::io::unix::AsyncFd for Rust async/await integration.

Structs§

  • A handle to a specific syncobj