[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <60A6421A-813F-4A93-88AF-4AE3027E1FA3@collabora.com>
Date: Fri, 1 Aug 2025 11:13:29 -0300
From: Daniel Almeida <daniel.almeida@...labora.com>
To: Sidong Yang <sidong.yang@...iosa.ai>
Cc: Caleb Sander Mateos <csander@...estorage.com>,
Benno Lossin <lossin@...nel.org>,
Miguel Ojeda <ojeda@...nel.org>,
Arnd Bergmann <arnd@...db.de>,
Jens Axboe <axboe@...nel.dk>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
rust-for-linux@...r.kernel.org,
linux-kernel@...r.kernel.org,
io-uring@...r.kernel.org
Subject: Re: [RFC PATCH v2 0/4] rust: miscdevice: abstraction for uring-cmd
Hi Sidong,
> On 27 Jul 2025, at 12:03, Sidong Yang <sidong.yang@...iosa.ai> wrote:
>
> This patch series implemens an abstraction for io-uring sqe and cmd and
> adds uring_cmd callback for miscdevice. Also there is an example that use
> uring_cmd in rust-miscdevice sample.
>
> I received a email from kernel bot that `io_tw_state` is not FFI-safe.
> It seems that the struct has no field how can I fix this?
>
> Changelog:
> v2:
> * use pinned &mut for IoUringCmd
> * add missing safety comments
> * use write_volatile for read uring_cmd in sample
Why is v2 an RFC when v1 wasn’t? Can you mention it on the changelog?
>
> Sidong Yang (4):
> rust: bindings: add io_uring headers in bindings_helper.h
> rust: io_uring: introduce rust abstraction for io-uring cmd
> rust: miscdevice: add uring_cmd() for MiscDevice trait
> samples: rust: rust_misc_device: add uring_cmd example
>
> rust/bindings/bindings_helper.h | 2 +
> rust/kernel/io_uring.rs | 183 +++++++++++++++++++++++++++++++
> rust/kernel/lib.rs | 1 +
> rust/kernel/miscdevice.rs | 41 +++++++
> samples/rust/rust_misc_device.rs | 34 ++++++
> 5 files changed, 261 insertions(+)
> create mode 100644 rust/kernel/io_uring.rs
>
> --
> 2.43.0
>
>
— Daniel
Powered by blists - more mailing lists