![]() |
![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Attach a handler function to an interrupt
#include <audio_driver.h>
int32_t ado_attach_interrupt (
ado_card_t *card,
int32_t irq,
void (*handler) (
HW_CONTEXT_T *hw_context,
int32_t irqnum ),
HW_CONTEXT_T *hw_context );
The ado_attach_interrupt() function attaches a handler function to an interrupt.
The io-audio manager automatically detaches any interrupt handlers when your Audio HW DLL is unmounted.
0 on success, or a negative number if an error occurred (errno is set).
QNX Neutrino
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
![]() |
![]() |
![]() |
![]() |