GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> PBS / V2-12-1 > pbs / mv2304


Interface   Data Structures   File List   Data Fields   Globals  

INT.ih File Reference

Defines the inline interrupt locking routines. More...

#include <PBI/Inline.h>
#include <PBS/impl/INT.ih.xx-xxx-xxx>

Defines

#define INT__EXP_PROTO   static inline
 Export Prototype spec.
#define INT__LCL_PROTO   INLINE_USR_LCL_PROTO
 Internal Prototype spec.
#define INT__EXP_FNC   INLINE_USR_EXP_FNC
 Export Function declaration.
#define INT__LCL_FNC   INLINE_USR_LCL_FNC
 Internal Function declaration.

Functions

INT__EXP_PROTO int INT__context (void)
 Return non-zero if a interrupt level.
INT__EXP_PROTO int INT__lock (void)
 Locks interrupts.
INT__EXP_PROTO void INT__unlock (int key)
 Unlocks the interrrupts.


Detailed Description

Defines the inline interrupt locking routines.

Author:
JJRussell - russell@slac.stanford.edu

    CVS $Id: INT.ih,v 1.6 2011/03/24 23:05:42 apw Exp $

These routines are just the inline versions of the VxWorks intLock and intUnlock routines. These services can really only be provided on PPC. The implementation is dependent on the GNU compiler.


Function Documentation

int INT__context ( void   ) 

Return non-zero if a interrupt level.

Return values:
!= 0, if at interrupt level
== 0, if not at interrupt level (i.e. at task level)

int INT__lock ( void   ) 

void INT__unlock ( int  key  ) 

Unlocks the interrrupts.

Parameters:
key The key to unlock the interrupt. This is the return value of INT_lock().

Referenced by LSU_atomicCalc(), LSU_atomicScale(), RW__tmr_unlock(), RW__unlock(), RW__unlock2(), RW__wait(), unlock_que(), WCT__aticks_to_pticks(), WCT__diff_aticksL(), wct__get(), WCT__pticks_to_aticks(), and WUT_sys_handler().


Generated on Sat Apr 9 19:25:17 2011 by  doxygen 1.5.8