linux/rust
Asahi Lina a98a73be9e 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 <mripard@kernel.org>
Signed-off-by: Asahi Lina <lina@asahilina.net>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Link: https://lore.kernel.org/r/20250410235546.43736-7-dakr@kernel.org
[ 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 <dakr@kernel.org>
2025-04-24 14:11:58 +02:00
..
bindings rust: drm: file: Add File abstraction 2025-04-24 14:11:58 +02:00
helpers rust: auxiliary: add auxiliary device / driver abstractions 2025-04-19 10:54:25 +02:00
kernel rust: drm: file: Add File abstraction 2025-04-24 14:11:58 +02:00
macros Rust changes for v6.15 2025-03-30 17:03:26 -07:00
pin-init Rust changes for v6.15 2025-03-30 17:03:26 -07:00
uapi rust: drm: ioctl: Add DRM ioctl abstraction 2025-04-24 13:50:05 +02:00
.gitignore
.kunitconfig rust: add kunitconfig 2025-03-19 23:22:21 +01:00
bindgen_parameters rust: map __kernel_size_t and friends also to usize/isize 2024-11-10 23:58:00 +01:00
build_error.rs
compiler_builtins.rs ARM: 9441/1: rust: Enable Rust support for ARMv7 2025-03-26 13:31:16 +00:00
exports.c
ffi.rs rust: map long to isize and char to u8 2024-12-16 21:49:33 +01:00
Makefile Kbuild updates for v6.15 2025-04-05 15:46:50 -07:00