GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > EMSG / V0-0-3

Constituent: emsg_mt     Tag: i845e


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"

Include dependency graph for EMSG_prvdefs.h:

This graph shows which files directly or indirectly include this file:


Data Structures

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. Unknown code (severity "success").
#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 _EMSG_Packet EMSG_Packet
 Structure to hold a complete message description packet.
typedef _EMSG_TaskOption EMSG_TaskOption
 Per task reporting level and trace buffer options.
typedef _EMSG_AltMessage EMSG_AltMessage
 Alternative message table (used to improve internal efficiency).
typedef _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.3 2007/03/07 18:09:08 saxton Exp

Define Documentation

#define EMSG_A_UNKNOWNS   0
 

Indices into the MSG_alt[] table. Unknown code (severity "success").

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.

#define EMSG_L_RTNNAME   32
 

Maximum length of routine name (incl.

\0)

#define EMSG_L_TSKNAME   16
 

Maximum length of task name (incl.

\0)


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

enum _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.

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
 

Call back the message output processing routines.

This routine scans through attached output processors.

Parameters:
prm (in) User context stored in fork control block
hdr (in) Pointer to the message (complete packet).


Generated on Thu Mar 8 09:41:51 2007 by  doxygen 1.4.4