Skip to content

rust: sync: Add Guard related type-aliases

Lyude Paul lkml rust-for-linux 1 version Applied

Status from this message: The following commit has been merged into the locking/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2rust: sync: Add MutexGuard type aliasrust/kernel/sync.rs rust/kernel/sync/lock/mutex.rs+9 -11 reply
2/2rust: sync: Add SpinLockGuard type aliasrust/kernel/sync.rs rust/kernel/sync/lock/spinlock.rs+9 -11 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAlice Ryhl
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] rust: sync: Add Guard related type-aliases

This is something I originally meant to do when adding Lock::from_raw and exposing Guard::new - introduce type aliases for the various types of Guard that we can run into.

Lyude Paul (2):
rust: sync: Add MutexGuard type alias
rust: sync: Add SpinLockGuard type alias

 rust/kernel/sync.rs               | 4 ++--
 rust/kernel/sync/lock/mutex.rs    | 8 ++++++++
 rust/kernel/sync/lock/spinlock.rs | 8 ++++++++
 3 files changed, 18 insertions(+), 2 deletions(-)

base-commit: b2603f8ac8217bc59f5c7f248ac248423b9b99cb
prerequisite-patch-id: 8c65a39abe47832d0c98c9c266b4b9348fb3526a
prerequisite-patch-id: 211faf8533feec77907b0a1b9b2f788e72c5ac58

Signature · 1 line
2.47.0