aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers
diff options
context:
space:
mode:
authorAsahi Lina <[email protected]>2025-04-10 23:55:25 +0000
committerDanilo Krummrich <[email protected]>2025-04-24 12:11:58 +0000
commita98a73be9ee9c42495690b2fe56e1ce27768289a (patch)
tree0bff4bb62cb35944fe70b9f438a391d9766e4de8 /rust/helpers
parentrust: drm: add DRM driver registration (diff)
downloadkernel-a98a73be9ee9c42495690b2fe56e1ce27768289a.tar.gz
kernel-a98a73be9ee9c42495690b2fe56e1ce27768289a.zip
rust: drm: file: Add File abstraction
A DRM File is the DRM counterpart to a kernel file structure, representing an open DRM file descriptor. Add a Rust abstraction to allow drivers to implement their own File types that implement the DriverFile trait. Reviewed-by: Maxime Ripard <[email protected]> Signed-off-by: Asahi Lina <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Reviewed-by: Lyude Paul <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ Rework of drm::File * switch to the Opaque<T> type * fix (mutable) references to struct drm_file (which in this context is UB) * restructure and rename functions to align with common kernel schemes * write and fix safety and invariant comments * remove necessity for and convert 'as' casts * original source archive: https://archive.is/GH8oy - Danilo ] Signed-off-by: Danilo Krummrich <[email protected]>
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions