summaryrefslogtreecommitdiff
path: root/rust/bindings/bindings_helper.h
diff options
context:
space:
mode:
authorAsahi Lina <lina@asahilina.net>2023-02-05 20:58:29 +0900
committerDanilo Krummrich <dakr@kernel.org>2024-10-22 22:55:10 +0200
commit57e9abb1112d7008cfd13b25f8105b3e8ff78ac3 (patch)
tree8150be7e6faf6519c8979d961b8c0152ae188218 /rust/bindings/bindings_helper.h
parent7509fd275f9629a29fee30b6271bec6d0657d9f5 (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/bindings/bindings_helper.h')
-rw-r--r--rust/bindings/bindings_helper.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/bindings/bindings_helper.h b/rust/bindings/bindings_helper.h
index f45e6f7ccf8a..48b0449c853a 100644
--- a/rust/bindings/bindings_helper.h
+++ b/rust/bindings/bindings_helper.h
@@ -8,6 +8,7 @@
#include <drm/drm_device.h>
#include <drm/drm_drv.h>
+#include <drm/drm_file.h>
#include <drm/drm_ioctl.h>
#include <kunit/test.h>
#include <linux/blk-mq.h>