GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > IMM / V0-3-2
Constituent: imm     Tag: mv2304
#include <ctype.h>
#include <string.h>
#include "PBS/FPA.h"
#include "PBS/MBA.h"
#include "PBS/MTX.h"
#include "PBS/RW.ih"
#include "MSG/MSG_pubdefs.h"
#include "IMM/FPM_pubdefs.h"
#include "IMM/FPM_msgs.h"
#include "FPM_prvdefs.h"
Include dependency graph for FPM_pool.c:
Functions | |
static void | deletePool (FPM_Pool *pcb, FPM_PoolStat *psb) |
Delete fixed packet allocation memory pool and control block. | |
static unsigned int | validName (const char *name, const char *func) |
Validate a pool name. | |
static unsigned int | validPool (unsigned int poolCnt, const FPM_PoolDsc *poolDsc, const char *func) |
Validate a memory pool description. | |
unsigned int | FPM_createPool (FPM_Pool **pcb, const char *poolNam, unsigned int poolCnt, FPM_PoolDsc *poolDsc, FPA_type typ) |
Create memory pool from collection of fixed packet allocators. | |
unsigned int | FPM_deletePool (FPM_Pool *pcb) |
Delete a memory pool (and release its resources). | |
FPM_Pool * | FPM_getPoolHandle (const char *name) |
Return the pool handle corresponding to a pool name. | |
unsigned int | FPM_getPoolHist (FPM_Pool *pcb, FPM_PoolHist *phb) |
Get the contents of the histogram block for a pool. | |
const char * | FPM_getPoolName (FPM_Pool *pcb) |
Return the name of a memory pool. | |
unsigned int | FPM_getPoolStat (FPM_Pool *pcb, FPM_PoolStat *psb, unsigned int reset) |
Get the contents of the statistics block for a pool. | |
unsigned int | FPM_scanPool (FPM_cb_ScanPool *rtn, void *prm) |
Scan through the list of memory pools. | |
unsigned int | FPM_sizeofPoolStat (FPM_Pool *pcb) |
Return the size (bytes) neede to hols a pool statistics block. | |
unsigned int | FPM_startPool (FPM_Pool *pcb) |
Start a fixed packet allocation memory pool. | |
void | FPM_stopCheck (FPM_Pool *pcb) |
Check if pool is drained (and if it is, complete stop processing). | |
unsigned int | FPM_stopPool (FPM_Pool *pcb, FPM_cb_StopPool *poolRtn, void *poolPrm) |
Stop a fixed packet allocation memory pool. | |
Variables | |
const char * | FPM_mem_states [FPM_L_MEM_STATES] |
String constants for FPM memory states. |
CVS $Id: FPM_pool.c,v 1.2 2005/03/25 01:01:41 apw Exp $
|
Delete fixed packet allocation memory pool and control block.
|
|
Create memory pool from collection of fixed packet allocators.
|
|
Delete a memory pool (and release its resources).
|
|
Return the pool handle corresponding to a pool name.
|
|
Get the contents of the histogram block for a pool.
Any errors also result in a zeroed histogram block being returned. |
|
Return the name of a memory pool.
|
|
Get the contents of the statistics block for a pool.
Pool statistics include allocation high and low water marks since the pool was started. These can be of marginal utility (the hwm never moves off the original number of packets allocated, and if the pool exhausts, the lwm gets stuck on zero). The statistics therefore keep a second, resettable set of high and low water marks. Setting the reset parameter to this routine will cause them to reset to the currently allocated number of packets (and take a timestamp of when the reset occured). These are the only statistics affected by the reset flag. All other statistics accumulate from memory pool start. If called while the memory pool is not started, the statistics returned apply to the most recent "started" period. If the memory pool has never been started, a zeroed statistice block is returned. Any errors also result in a zeroed statistics block being returned. |
|
Scan through the list of memory pools.
|
|
Return the size (bytes) neede to hols a pool statistics block.
|
|
Start a fixed packet allocation memory pool.
|
|
Check if pool is drained (and if it is, complete stop processing).
|
|
Stop a fixed packet allocation memory pool.
|
|
Validate a pool name.
|
|
Validate a memory pool description.
|
|
Initial value: { "uninitialized", "initialized", "started", "stopping" }
|