mirror of
https://github.com/torvalds/linux.git
synced 2026-12-04 20:34:05 +00:00
This patch adds support for non-threaded IRQs and handlers through irq::Registration and the irq::Handler trait. Registering an irq is dependent upon having a IrqRequest that was previously allocated by a given device. This will be introduced in subsequent patches. Tested-by: Joel Fernandes <[email protected]> Tested-by: Dirk Behme <[email protected]> Reviewed-by: Alice Ryhl <[email protected]> Signed-off-by: Daniel Almeida <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ Remove expect(dead_code) from Flags::into_inner(), add expect(dead_code) to IrqRequest::new(), fix intra-doc links. - Danilo ] Signed-off-by: Danilo Krummrich <[email protected]>
10 lines
250 B
C
10 lines
250 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include <linux/interrupt.h>
|
|
|
|
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);
|
|
}
|