CMRX offers a tiny set of hardware-oriented services that allow manipulating the status of interrupt request lines. More...
Functions | |
__SYSCALL int | irq_enable (uint32_t irq) |
Enable IRQ line. | |
__SYSCALL int | irq_disable (uint32_t irq) |
Disable IRQ line. | |
CMRX offers a tiny set of hardware-oriented services that allow manipulating the status of interrupt request lines.
This is provided in order to give drivers access to IRQ configuration from userspace, which may otherwise be denied by the hardware.
__SYSCALL int irq_disable | ( | uint32_t | irq | ) |
Disable IRQ line.
This syscall will disable IRQ line identified by the IRQ number. The implementation of this call is platform-specific and IRQ number has hardware-specific meaning. CMRX kernel does not perform any interpretation of these values.
In general it is not an error trying to disable already disabled IRQ.
irq | IRQ number of interrupt line to be disabled |
__SYSCALL int irq_enable | ( | uint32_t | irq | ) |
Enable IRQ line.
This syscall will enable IRQ line identified by the IRQ number. The implementation of this call is platform-specific and IRQ number has hardware-specific meaning. CMRX kernel does not perform any interpretation of these values.
In general it is not an error trying to enable already enabled IRQ.
irq | IRQ number of interrupt line to be enabled |