VxWorks Reference Manual : Libraries
intLib - architecture-independent interrupt subroutine library
intContext( ) - determine if the current state is in interrupt or task context
intCount( ) - get the current interrupt nesting depth
This library provides generic routines for interrupts. Any C language routine can be connected to any interrupt (trap) by calling intConnect( ), which resides in intArchLib. The intCount( ) and intContext( ) routines are used to determine whether the CPU is running in an interrupt context or in a normal task context. For information about architecture-dependent interrupt handling, see the manual entry for intArchLib.
intLib.h
intLib, intArchLib, VxWorks Programmer's Guide: Basic OS
intContext( ) - determine if the current state is in interrupt or task context
BOOL intContext (void)
This routine returns TRUE only if the current execution state is in interrupt context and not in a meaningful task context.
TRUE or FALSE.
intCount( ) - get the current interrupt nesting depth
int intCount (void)
This routine returns the number of interrupts that are currently nested.
The number of nested interrupts.