Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_attach_interrupt.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_attach_interrupt.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_attach_interrupt.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_attach_interrupt.html on line 8
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 );
- card
- The card argument that io-audio passed to your
Audio HW DLL's
ctrl_init()
function (see the Organization of a Driver chapter).
- irq
- The interrupt request number.
- handler
- The handler function.
When the handler is invoked,
the hw_context and the IRQ number are passed in as arguments.
- hw_context
- A pointer to your Audio HW DLL's context-specific data, which you created
in the ctrl_init() function.
The ado_attach_interrupt() function
attaches a handler function to an interrupt.
The handler function runs in user space, not in the kernel space.
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).
- EAGAIN
- Insufficient system resources to create a thread.
QNX Neutrino
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_attach_interrupt.html on line 131
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_attach_interrupt.html on line 131