summaryrefslogtreecommitdiff
path: root/rust/kernel/drm/mod.rs
diff options
context:
space:
mode:
authorAsahi Lina <lina@asahilina.net>2023-02-05 20:58:29 +0900
committerDanilo Krummrich <dakr@kernel.org>2024-12-10 23:07:35 +0100
commitcd3c549d244556d8d7002c69b8a4823e8e10ee1f (patch)
treef62e1adf06b180ac121a3c718cf974892ce9e252 /rust/kernel/drm/mod.rs
parent3e267acb625f069817d237219bd3547823e059ae (diff)
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. Signed-off-by: Asahi Lina <lina@asahilina.net> Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'rust/kernel/drm/mod.rs')
-rw-r--r--rust/kernel/drm/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/kernel/drm/mod.rs b/rust/kernel/drm/mod.rs
index 69376b3c6db9..a767942d0b52 100644
--- a/rust/kernel/drm/mod.rs
+++ b/rust/kernel/drm/mod.rs
@@ -4,4 +4,5 @@
pub mod device;
pub mod drv;
+pub mod file;
pub mod ioctl;