#include <rtl_core.h.h> int rtl_get_soft_irq(void (*handler)(int, void *, struct pt_regs *), const char * devname); void rtl_free_soft_irq(unsigned int irq); |
These functions are specific to Realtime Linux.
rtl_get_soft_irq allocates a software interrupt vector and registers the function handler as the interrupt handler for the allocated software interrupt. The devname string is shown in /proc/interrupts for every soft interrupt handler installed. The software interrupt can later be triggered by the rtl_global_pend_irq(3) function.
rtl_free_soft_irq uninstalls the specified software interrupt handler.
The software interrupt handler will be executed in the Linux kernel context so it can call any functions that are normally allowed to be called from Linux interrupt handlers.