GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > IMM / V0-3-2
Constituent: imm     Tag: mv2304
#include <ctype.h>
#include <string.h>
#include "PBS/MBA.h"
#include "PBS/MTX.h"
#include "PBS/RNG.h"
#include "PBS/RW.ih"
#include "MSG/MSG_pubdefs.h"
#include "IMM/RBM_pubdefs.h"
#include "IMM/RBM_msgs.h"
#include "RBM_prvdefs.h"
Include dependency graph for RBM_ring.c:
Functions | |
static unsigned int | validName (const char *name, const char *func) |
Validate a ring name. | |
unsigned int | RBM_createRing (RBM_Ring **rcb, const char *ringName, unsigned int ringSize, unsigned int ringUnder, unsigned int ringOver, unsigned int ringAlign, RNG_type typ) |
Create a managed ring buffer. | |
unsigned int | RBM_deleteRing (RBM_Ring *rcb) |
Delete a managed ring buffer (and release its resources). | |
RBM_Ring * | RBM_getRingHandle (const char *name) |
Return the ring handle corresponding to a ring name. | |
unsigned int | RBM_getRingHist (RBM_Ring *rcb, RBM_RingHist *rhb) |
Get the contents of the histogram block for a ring. | |
const char * | RBM_getRingName (RBM_Ring *rcb) |
Return the name of a managed ring buffer. | |
unsigned int | RBM_getRingStat (RBM_Ring *rcb, RBM_RingStat *rsb, unsigned int reset) |
Get the contents of the statistics block for a managed ring buffer. | |
unsigned int | RBM_scanRing (RBM_cb_ScanRing *rtn, void *prm) |
Scan through the list of managed ring buffers. | |
unsigned int | RBM_startRing (RBM_Ring *rcb) |
Start a managed ring buffer. | |
void | RBM_stopCheck (RBM_Ring *rcb) |
Check if ring buffer is drained (if it is, complete stop processing). | |
unsigned int | RBM_stopRing (RBM_Ring *rcb, RBM_cb_StopRing *ringRtn, void *ringPrm) |
Stop a managed ring buffer. | |
Variables | |
const char * | RBM_mem_states [RBM_L_MEM_STATES] |
String constants for RBM ring buffer memory states. |
CVS $Id: RBM_ring.c,v 1.2 2005/03/25 01:01:41 apw Exp $
|
Create a managed ring buffer.
|
|
Delete a managed ring buffer (and release its resources).
|
|
Return the ring handle corresponding to a ring name.
|
|
Get the contents of the histogram block for a ring.
Any errors also result in a zeroed histogram block being returned. |
|
Return the name of a managed ring buffer.
|
|
Get the contents of the statistics block for a managed ring buffer.
Statistics include free memory high and low water marks since the ring was started. These can be of marginal utility (the hwm never moves off the original number of bytes allocated, and if the ring 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 current free byte count (and take a timestamp of when the reset occured). These are the only statistics affected by the reset flag. All other statistics accumulate from ring buffer start. If called while the ring buffer is not started, the statistics returned apply to the most recent "started" period. If the memory ring 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 managed ring buffers.
|
|
Start a managed ring buffer.
|
|
Check if ring buffer is drained (if it is, complete stop processing).
|
|
Stop a managed ring buffer.
|
|
Validate a ring name.
|
|
Initial value: { "uninitialized", "initialized", "started", "stopping" }
|