[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aJRE2CouQ4bSvCOf@sidongui-MacBookPro.local>
Date: Thu, 7 Aug 2025 15:17:02 +0900
From: Sidong Yang <sidong.yang@...iosa.ai>
To: Daniel Almeida <daniel.almeida@...labora.com>
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
On Fri, Aug 01, 2025 at 11:13:29AM -0300, Daniel Almeida wrote:
> 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?
It was just miss. v1 should be also RFC. I'll mention it for next v3.
Thanks,
Sidong
>
> >
> > 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