GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > ITC / V2-1-7

Constituent: itc     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

ITC_memory.c File Reference

Memory pool management routines for ITC. More...

#include <string.h>
#include "PBS/FPA.h"
#include "PBS/MBA.h"
#include "PBS/RW.ih"
#include "MSG/MSG_pubdefs.h"
#include "ITC/ITC_msgs.h"
#include "ITC_prvdefs.h"

Include dependency graph for ITC_memory.c:

Include dependency graph

Functions

unsigned int ITC_createPool (ITC_PoolControl *poolCtl, unsigned int poolCnt, ITC_PoolDsc *poolDsc)
 Create fixed packet allocation memory pools.

void ITC_deletePool (ITC_PoolControl *poolCtl)
 Delete fixed packet allocation memory pool.

unsigned int ITC_validPool (unsigned int sizeMin, unsigned int sizeRng, unsigned int poolCnt, const ITC_PoolDsc *poolDsc, const char *func)
 Create fixed packet allocation memory pools.


Detailed Description

Memory pool management routines for ITC.

CVS $Id: ITC_memory.c,v 1.2 2004/11/24 01:52:46 apw Exp $
Author:
A.P.Waite
ITC_memory.c provides memory pool management for ITC.

Function Documentation

unsigned int ITC_createPool ITC_PoolControl poolCtl,
unsigned int  poolCnt,
ITC_PoolDsc poolDsc
 

Create fixed packet allocation memory pools.

Parameters:
poolCtl (out) Pool control block
poolCnt (in) Pool descriptor count
poolDsc (in) Pool descriptors
Return values:
ITC_ALOCFAIL Memory allocation failure
ITC_FPAINIT FPA initialization failure
ITC_SUCCESS Success
ITC_createPool() creates a memory pool.

Here is the call graph for this function:

void ITC_deletePool ITC_PoolControl poolCtl  ) 
 

Delete fixed packet allocation memory pool.

Parameters:
poolCtl (in) Memory pool control block
ITC_deletePool() deletes an ITC memory pool.

unsigned int ITC_validPool unsigned int  sizeMin,
unsigned int  sizeRng,
unsigned int  poolCnt,
const ITC_PoolDsc poolDsc,
const char *  func
 

Create fixed packet allocation memory pools.

Parameters:
sizeMin (in) Minimum packet size (powers of two)
sizeRng (in) Range of packet sizes (powers of two)
poolCnt (in) Pool descriptor count
poolDsc (in) Pool descriptors
func (in) Name of calling routine
Return values:
ITC_POOLCNT Pool member count out of valid range
ITC_POOLPKT Pool member size out of valid range
ITC_POOLSRT Pool members not sorted
ITC_SUCCESS Success
ITC_validPool() validates a memory pool creation request.


Generated on Thu Mar 3 20:43:15 2005 by doxygen 1.3.3