Closed cmeissl closed 9 months ago
This isn't strictly necessary since those should always be the same as the variants from libc
, but it could be handy to just have drm::CLOEXEC
and drm::RDWR
.
These may differ by OS/architecture (looking at libc
, O_CLOEXEC
is different on some Linux architectures?), so they can be defined using linux-raw-sys
on Linux and libc
elsewhere. Matching rustix
and how drm-sys
defines __kernel_size_t
.
The drm headers define:
These can be passed to
prime_handle_to_fd
and should be exported by thedrm
crate.