summaryrefslogtreecommitdiff
path: root/rust/helpers/processor.c
diff options
context:
space:
mode:
authorAlice Ryhl <aliceryhl@google.com>2025-08-11 13:03:45 -0300
committerDanilo Krummrich <dakr@kernel.org>2025-08-12 20:33:33 +0200
commit29e16fcd67ee5b1d0417a657294cf96fdf2f8df9 (patch)
tree716816cb7f3a6e5e69f71e5e2714b94c402f07a1 /rust/helpers/processor.c
parent9b6d4fb9804febb1ae75e7259bb475cea58e28a7 (diff)
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 <aliceryhl@google.com> Reviewed-by: Boqun Feng <boqun.feng@gmail.com> Signed-off-by: Daniel Almeida <daniel.almeida@collabora.com> Link: https://lore.kernel.org/r/20250811-topics-tyr-request_irq2-v9-7-0485dcd9bcbf@collabora.com Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'rust/helpers/processor.c')
0 files changed, 0 insertions, 0 deletions