GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EMSG / V1-1-1 > emsg_st / rhel6-64


Interface   Data Structures   File List   Data Fields   Globals  

EMSG_prvdefs.h File Reference

Private definitions for the EMSG facility. More...

#include <EMSG/EMSG_pubdefs.h>
#include <EMSG/EMSG_database.h>
#include <PBS/FPA.h>

Classes

struct  _EMSG_Packet
 Structure to hold a complete message description packet. More...
struct  _EMSG_OutputRtn
 Structure to hold an output processor (on a singly linked list). More...
struct  _EMSG_TaskOption
struct  _EMSG_AltMessage
 Alternative message table (used to improve internal efficiency). More...
struct  _EMSG_Control
 Structure to hold the message control block. More...

Defines

#define EMSG_L_TSKNAME   16
 Maximum length of task name (incl.
#define EMSG_L_RTNNAME   32
 Maximum length of routine name (incl.
#define EMSG_D_TRACE   0
 Default trace buffer number.
#define EMSG_D_LEVEL   0
 Default reporting level.
#define EMSG_P_RESERVED   2
 Packets reserved for blackout processing.
#define EMSG_A_UNKNOWNS   0
 Indices into the MSG_alt[] table.
#define EMSG_A_UNKNOWNW   1
 Unknown code (severity "warning").
#define EMSG_A_UNKNOWNI   2
 Unknown code (severity "information").
#define EMSG_A_UNKNOWNE   3
 Unknown code (severity "error").
#define EMSG_A_UNIXGOOD   4
 Unknown code (suspect Unix "good").
#define EMSG_A_UNIXEROR   5
 Unknown code (suspect Unix "error").
#define EMSG_A_GAPBEGIN   6
 Begin blackout message.
#define EMSG_A_GAPEND   7
 End blackout message.
#define EMSG_L_ALTERNATE   8
 Number of alternate messages.
#define EMSG_RW_DECLARE(key)
 Declare an interlock key.
#define EMSG_RW_LOCK(key)
 Take an interlock.
#define EMSG_RW_UNLOCK(key)
 Free an interlock.
#define EMSG_MX_LOCK(mtx)
 Take a mutex.
#define EMSG_MX_UNLOCK(mtx)
 Free a mutex.

Typedefs

typedef enum _EMSG_States EMSG_States
 Enumeration of states the message system can be in.
typedef struct _EMSG_Packet EMSG_Packet
 Structure to hold a complete message description packet.
typedef struct _EMSG_TaskOption EMSG_TaskOption
 Per task reporting level and trace buffer options.
typedef struct _EMSG_AltMessage EMSG_AltMessage
 Alternative message table (used to improve internal efficiency).
typedef struct _EMSG_Control EMSG_Control
 Structure to hold the message control block.

Enumerations

enum  _EMSG_States {
  EMSG_S_NOWHERE = 0,
  EMSG_S_UNINITIALIZED = 1,
  EMSG_S_INITIALIZED = 2,
  EMSG_S_STARTED = 3,
  EMSG_S_STOPPING = 4,
  EMSG_S_STOPSYNC = 5
}
 Enumeration of states the message system can be in. More...

Functions

unsigned int EMSG_getCtlThread (void)
void EMSG_getIP (unsigned char)
unsigned int EMSG_outputScan (void *prm, void *hdr)
 Call back the message output processing routines.

Variables

EMSG_AltMessage EMSG_alt [EMSG_L_ALTERNATE]
 Translation table for the eight "special" messages.
EMSG_ControlEMSG_mcb
 Pointer to the control block for the message system.


Detailed Description

Private definitions for the EMSG facility.

Author:
A.P.Waite & Owen H Saxton
Id
EMSG_prvdefs.h,v 1.4 2011/03/25 21:37:59 saxton Exp

Define Documentation

#define EMSG_A_UNKNOWNS   0

Indices into the MSG_alt[] table.

The first four entries must be aligned with the message severity codes (which are in an awkward order). This allows the severity code to be used as an index into this table. Unknown code (severity "success")

#define EMSG_L_RTNNAME   32

Maximum length of routine name (incl.

\0)

#define EMSG_L_TSKNAME   16

Maximum length of task name (incl.

\0)

Referenced by EMSG_outputScan(), and EMSG_setTask().


Typedef Documentation

typedef enum _EMSG_States EMSG_States

Enumeration of states the message system can be in.

Reflects the current state of the message system. Used internally to keep the state diagram straight.


Enumeration Type Documentation

Enumeration of states the message system can be in.

Reflects the current state of the message system. Used internally to keep the state diagram straight.

Enumerator:
EMSG_S_NOWHERE  Before first initialization call.
EMSG_S_UNINITIALIZED  Uninitialized.
EMSG_S_INITIALIZED  Initialized.
EMSG_S_STARTED  Normal operations.
EMSG_S_STOPPING  Stop request queued to MSG task.
EMSG_S_STOPSYNC  Stop request seen in MSG task.


Function Documentation

unsigned int EMSG_outputScan ( void *  prm,
void *  hdr 
)


Variable Documentation

Pointer to the control block for the message system.

Referenced by EMSG_attachOutputRtn(), EMSG_detachOutputRtn(), EMSG_outputScan(), and EMSG_report().


Generated on Tue Sep 27 19:10:11 2011 by  doxygen 1.5.8