VxWorks Reference Manual : Libraries

intLib

NAME

intLib - architecture-independent interrupt subroutine library

ROUTINES

intContext( ) - determine if the current state is in interrupt or task context
intCount( ) - get the current interrupt nesting depth

DESCRIPTION

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.

INCLUDE FILES

intLib.h

SEE ALSO

intLib, intArchLib, VxWorks Programmer's Guide: Basic OS


Libraries : Routines

intContext( )

NAME

intContext( ) - determine if the current state is in interrupt or task context

SYNOPSIS


BOOL intContext (void)

DESCRIPTION

This routine returns TRUE only if the current execution state is in interrupt context and not in a meaningful task context.

RETURNS

TRUE or FALSE.

SEE ALSO

intLib


Libraries : Routines

intCount( )

NAME

intCount( ) - get the current interrupt nesting depth

SYNOPSIS


int intCount (void)

DESCRIPTION

This routine returns the number of interrupts that are currently nested.

RETURNS

The number of nested interrupts.

SEE ALSO

intLib