Files
linux/rust/kernel
Alice Ryhl 29e16fcd67 rust: irq: add &Device<Bound> argument to irq callbacks
When working with a bus device, many operations are only possible while
the device is still bound. The &Device<Bound> type represents a proof in
the type system that you are in a scope where the device is guaranteed
to still be bound. Since we deregister irq callbacks when unbinding a
device, if an irq callback is running, that implies that the device has
not yet been unbound.

To allow drivers to take advantage of that, add an additional argument
to irq callbacks.

Signed-off-by: Alice Ryhl <[email protected]>
Reviewed-by: Boqun Feng <[email protected]>
Signed-off-by: Daniel Almeida <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Danilo Krummrich <[email protected]>
2025-08-12 20:33:33 +02:00
..
2025-06-22 23:09:32 +02:00
2025-07-23 02:05:58 +02:00
…
2025-07-23 02:05:58 +02:00
2025-07-21 01:16:35 +02:00
2025-08-12 19:39:45 +02:00
2025-07-19 23:18:18 +02:00
…
2025-08-12 20:33:33 +02:00
2024-10-08 15:44:36 +02:00
2025-08-12 20:32:24 +02:00
2025-07-21 01:16:35 +02:00
2024-11-04 16:21:44 -05:00