[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250621184454.8354-1-work@onurozkan.dev>
Date: Sat, 21 Jun 2025 21:44:51 +0300
From: Onur Özkan <work@...rozkan.dev>
To: linux-kernel@...r.kernel.org,
rust-for-linux@...r.kernel.org
Cc: ojeda@...nel.org,
alex.gaynor@...il.com,
boqun.feng@...il.com,
gary@...yguo.net,
lossin@...nel.org,
a.hindborg@...nel.org,
aliceryhl@...gle.com,
tmgross@...ch.edu,
dakr@...nel.org,
peterz@...radead.org,
mingo@...hat.com,
will@...nel.org,
longman@...hat.com,
felipe_life@...e.com,
daniel@...lak.dev,
bjorn3_gh@...tonmail.com,
Onur Özkan <work@...rozkan.dev>,
Lyude <thatslyude@...il.com>
Subject: [PATCH v5 0/3] rust: add `ww_mutex` support
This patch series implements Rust abstractions for kernel's
wound/wait mutex (ww_mutex) implementation.
Changes in v5:
- Addressed documentation review notes.
- Removed `unwrap()`s in examples and KUnit tests.
Suggested-by: Lyude <thatslyude@...il.com>
Link: https://rust-for-linux.zulipchat.com/#narrow/channel/291566-Library/topic/Writing.20up.20wrappers.20for.20ww_mutex.3F/with/524269974
Onur Özkan (3):
rust: add C wrappers for `ww_mutex` inline functions
implement ww_mutex abstraction for the Rust tree
add KUnit coverage on Rust `ww_mutex` implementation
rust/helpers/helpers.c | 3 +-
rust/helpers/ww_mutex.c | 39 +++
rust/kernel/error.rs | 1 +
rust/kernel/sync/lock.rs | 1 +
rust/kernel/sync/lock/ww_mutex.rs | 541 ++++++++++++++++++++++++++++++
5 files changed, 584 insertions(+), 1 deletion(-)
create mode 100644 rust/helpers/ww_mutex.c
create mode 100644 rust/kernel/sync/lock/ww_mutex.rs
--
2.49.0
Powered by blists - more mailing lists