summaryrefslogtreecommitdiff
path: root/rust/kernel/fs.rs
diff options
context:
space:
mode:
authorAlice Ryhl <aliceryhl@google.com>2025-08-22 08:42:34 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-09-06 13:27:20 +0200
commit5e15de179a204ce26623d8468283ac04a0dc672f (patch)
treee1d13b23142ddf27fa0cddb1327a84907032c0af /rust/kernel/fs.rs
parentce2e0829241ab96af9c8a12b511debc5e3188934 (diff)
rust: fs: add Kiocb struct
This adds a very simple Kiocb struct that lets you access the inner file's private data and the file position. For now, nothing else is supported. Cc: Christian Brauner <brauner@kernel.org> Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org> Signed-off-by: Alice Ryhl <aliceryhl@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://lore.kernel.org/r/20250822-iov-iter-v5-3-6ce4819c2977@google.com
Diffstat (limited to 'rust/kernel/fs.rs')
-rw-r--r--rust/kernel/fs.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/rust/kernel/fs.rs b/rust/kernel/fs.rs
index 0121b38c59e6..6ba6bdf143cb 100644
--- a/rust/kernel/fs.rs
+++ b/rust/kernel/fs.rs
@@ -6,3 +6,6 @@
pub mod file;
pub use self::file::{File, LocalFile};
+
+mod kiocb;
+pub use self::kiocb::Kiocb;