This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Attach the pseudo interrupt handler that the instrumented module uses
#include <sys/neutrino.h> int InterruptHookTrace( const struct sigevent * (* handler)(int), unsigned flags );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The InterruptHookTrace() kernel call attaches the pseudo interrupt handler handle that the instrumented module uses.
This function requires the instrumented kernel. For more information, see the documentation for the System Analysis Toolkit (SAT). |
An interrupt function ID, or -1 if an error occurs (errno is set).
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
InterruptAttach(), TraceEvent()
Writing an Interrupt Handler chapter of the Neutrino Programmer's Guide