[Previous] [Contents] [Next]

InterruptHookTrace()

Attach the pseudo interrupt handler that's used by the instrumented module

Synopsis:

#include <sys/neutrino.h>

int InterruptHookTrace( 
             const struct sigevent * (* handler)(int),
             unsigned flags );

Library:

libc

Description:

The InterruptHookTrace() function attaches the pseudo interrupt handler handle which is used by the instrumented module.


Note:

This function requires the instrumented kernel. Refer to the instrumented kernel docs for more detailed information.


Returns:

An interrupt function ID, or -1 if an error occurs (errno is set).

Errors:

EAGAIN
All kernel interrupt entries are in use.
EFAULT
A fault occurred when the kernel tried to access the buffers provided.
EPERM
The process doesn't have superuser capabilities.

Classification:

QNX 6

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

InterruptAttach(), TraceEvent()


[Previous] [Contents] [Next]