GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> MSG / V3-1-2 > msg_st / rhel6-32


Interface   Data Structures   File List   Data Fields   Globals  

MSG_configure.c File Reference

Start MSG based on configuration files. More...

#include <CMX/CMX_lookupPub.h>
#include <CDM/CDM_pubdefs.h>
#include <PBS/TASK.h>
#include <CPU_DB/CPU_DB_pubdefs.h>
#include <MSG_DB/MSG_DB_schema.h>
#include <MSG/MSG_pubdefs.h>
#include <MSG/MSG_msgs.h>

Functions

unsigned int MSG_configure ()
 Configure and start the MSG task.


Detailed Description

Start MSG based on configuration files.

CVS $Id: MSG_configure.c,v 1.5 2011/03/25 01:05:53 apw Exp $
Author:
A.P.Waite
MSG_configure.c provides the entry point MSG_configure() which knows how to start the MSG system based on the contents of the CDM configuration files MSG_DB (MSG specific configuration), and CPU_DB (CPU wide parameters such as task name and task priority).

Function Documentation

unsigned int MSG_configure ( void   ) 

Configure and start the MSG task.

Return values:
MSG_ALOCFAIL Fixed packet allocator (FPA) buffer allocation failed
MSG_BADSTATE Cannot initialize in the current MSG state
MSG_CFGNTFND Configuration database not found
MSG_FINDFAIL Cannot look up up alternate messages in database
MSG_FORKFAIL FORK initialization failed
MSG_FPAGFAIL Fixed packet allocator get failed during task start
MSG_FPAIFAIL Fixed packet allocator (FPA) initialization failed
MSG_MUALOCFL Cannot allocate a mutex
MSG_PKT2FEW Packet count parameter too small
MSG_PKT2SMAL Packet length parameter too small
MSG_SUCCESS Success
MSG_configure() configures MSG. It reads configuration database files to perform the MSG_initialize(), MSG_attachOutputRtn() and MSG_startTask() functions. If the configuration databases can't be found, MSG will still do its best to start up a message task based on an internal default configuration.

References MSG_initialize(), MSG_setCPU(), MSG_startTask(), _MSG_InitPrm::pkt_cnt, and _MSG_InitPrm::pkt_len.


Generated on Tue Nov 29 16:54:51 2011 by  doxygen 1.5.8