mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 05:44:45 +01:00
This is needed to inline these helpers into Rust code. Signed-off-by: Alice Ryhl <aliceryhl@google.com> Reviewed-by: Gary Guo <gary@garyguo.net> Reviewed-by: Boqun Feng <boqun.feng@gmail.com> Link: https://patch.msgid.link/20251202-define-rust-helper-v1-20-a2e13cbc17a6@google.com Signed-off-by: Danilo Krummrich <dakr@kernel.org>
11 lines
278 B
C
11 lines
278 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include <linux/interrupt.h>
|
|
|
|
__rust_helper int rust_helper_request_irq(unsigned int irq,
|
|
irq_handler_t handler,
|
|
unsigned long flags, const char *name,
|
|
void *dev)
|
|
{
|
|
return request_irq(irq, handler, flags, name, dev);
|
|
}
|