[PATCH 0/3] rust: miscdevice: Extending the abstraction

ManeraKai posted 3 patches 1 week, 6 days ago
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
[PATCH 0/3] rust: miscdevice: Extending the abstraction
Posted by ManeraKai 1 week, 6 days ago
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