rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] rust: miscdevice: Extending the abstraction
@ 2025-09-18 14:44 ManeraKai
  2025-09-18 14:45 ` [PATCH 1/3] rust: miscdevice: Moved `MiscDevice` to a more general abstraction ManeraKai
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: ManeraKai @ 2025-09-18 14:44 UTC (permalink / raw)
  To: aliceryhl@google.com, gregkh@linuxfoundation.org, arnd@arndb.de
  Cc: rust-for-linux@vger.kernel.org, linux-fsdevel@vger.kernel.org,
	linux-kernel@vger.kernel.org, manerakai@protonmail.com

Hi,

The following patches are fairly simple, as this is my first time:

1. Introduced a new general abstraction called `FileOperations`.
2. Implemented `read` and `write` for misc.
3. Updated the sample file for misc.

ManeraKai (3):
  rust: miscdevice: Moved `MiscDevice` to a more general abstraction
  rust: miscdevice: Implemented `read` and `write`
  samples: rust: Updated the example using the Rust MiscDevice
    abstraction

 rust/kernel/fs.rs                 |   1 +
 rust/kernel/fs/file_operations.rs | 109 +++++++++++
 rust/kernel/miscdevice.rs         | 178 +++++++++---------
 samples/rust/rust_misc_device.rs  | 289 ++++++++++++++++++++----------
 4 files changed, 391 insertions(+), 186 deletions(-)
 create mode 100644 rust/kernel/fs/file_operations.rs

-- 
2.43.0



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2025-09-18 17:24 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-18 14:44 [PATCH 0/3] rust: miscdevice: Extending the abstraction ManeraKai
2025-09-18 14:45 ` [PATCH 1/3] rust: miscdevice: Moved `MiscDevice` to a more general abstraction ManeraKai
2025-09-18 15:00   ` gregkh
2025-09-18 14:45 ` [PATCH 2/3] rust: miscdevice: Implemented `read` and `write` ManeraKai
2025-09-18 14:59   ` gregkh
2025-09-18 15:06     ` gregkh
2025-09-18 15:57       ` ManeraKai
2025-09-18 15:15   ` Alice Ryhl
2025-09-18 17:22     ` ManeraKai
2025-09-18 17:24       ` Alice Ryhl
2025-09-18 14:45 ` [PATCH 3/3] samples: rust: Updated the example using the Rust MiscDevice abstraction ManeraKai
2025-09-18 15:01   ` gregkh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).