rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] rust: Add irq abstraction, IrqSpinLock
@ 2024-07-25 22:27 Lyude Paul
  2024-07-25 22:27 ` [PATCH 1/3] rust: Introduce irq module Lyude Paul
                   ` (4 more replies)
  0 siblings, 5 replies; 24+ messages in thread
From: Lyude Paul @ 2024-07-25 22:27 UTC (permalink / raw)
  To: rust-for-linux
  Cc: Danilo Krummrich, airlied, Ingo Molnar, Will Deacon, Waiman Long,
	Peter Zijlstra, Miguel Ojeda, Alex Gaynor, Wedson Almeida Filho,
	Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin,
	Andreas Hindborg, Alice Ryhl

This adds a simple interface for disabling and enabling CPUs, along with
the ability to mark a function as expecting interrupts be disabled -
along with adding bindings for spin_lock_irqsave/spin_lock_irqrestore().

Lyude Paul (3):
  rust: Introduce irq module
  rust: sync: Introduce LockContainer trait
  rust: sync: Add IrqSpinLock

 rust/helpers.c                    |  14 +++++
 rust/kernel/irq.rs                |  74 ++++++++++++++++++++++
 rust/kernel/lib.rs                |   1 +
 rust/kernel/sync.rs               |   3 +-
 rust/kernel/sync/lock.rs          |  20 ++++++
 rust/kernel/sync/lock/spinlock.rs | 101 ++++++++++++++++++++++++++++++
 rust/kernel/sync/locked_by.rs     |  11 +++-
 7 files changed, 221 insertions(+), 3 deletions(-)
 create mode 100644 rust/kernel/irq.rs

-- 
2.45.2


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2024-07-27 11:21 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-25 22:27 [PATCH 0/3] rust: Add irq abstraction, IrqSpinLock Lyude Paul
2024-07-25 22:27 ` [PATCH 1/3] rust: Introduce irq module Lyude Paul
2024-07-26  5:39   ` Greg KH
2024-07-26 17:45     ` Lyude Paul
2024-07-26  7:23   ` Benno Lossin
2024-07-26 18:18     ` Lyude Paul
2024-07-26 19:39       ` Benno Lossin
2024-07-26 10:13   ` Trevor Gross
2024-07-26 21:21   ` Boqun Feng
2024-07-26 21:30     ` Benno Lossin
2024-07-26 21:40       ` Boqun Feng
2024-07-25 22:27 ` [PATCH 2/3] rust: sync: Introduce LockContainer trait Lyude Paul
2024-07-26  7:40   ` Benno Lossin
2024-07-26 18:20     ` Lyude Paul
2024-07-25 22:27 ` [PATCH 3/3] rust: sync: Add IrqSpinLock Lyude Paul
2024-07-26  7:48   ` Peter Zijlstra
2024-07-26 18:29     ` Lyude Paul
2024-07-26 20:21     ` Lyude Paul
2024-07-26 20:26       ` Peter Zijlstra
2024-07-27 11:21   ` kernel test robot
2024-07-26  5:39 ` [PATCH 0/3] rust: Add irq abstraction, IrqSpinLock Greg KH
2024-07-26 17:52   ` Lyude Paul
2024-07-26 18:47     ` Lyude Paul
2024-07-26 10:50 ` Trevor Gross

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).