GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LIM / V1-22-4 > lim / mv2304
#include <ITC/ITC_pubdefs.h>
#include <PBS/FPA.h>
Typedefs | |
typedef struct _LIM_Pool | LIM_Pool |
Typedef for opaque _LIM_Pool structure. | |
Functions | |
unsigned int | LIM_pool_init (LIM_Pool **pool_pp, unsigned int num_pkts, unsigned int pkt_bytes) |
Initialize a memory pool. | |
unsigned int | LIM_pool_shutdown (LIM_Pool *pool_p) |
Shutdown a memory pool by freeing its memory. | |
void * | LIM_pool_alloc (void *prm, unsigned int size, ITC_cb_Completion **free_cb, void **cb_parm_0, void **cb_parm_1, void **cb_parm_2) |
Allocate a packet from a memory pool. |
** CVS $Id: LIM_pool.h,v 1.4 2011/03/29 21:20:29 apw Exp $ **
void* LIM_pool_alloc | ( | void * | prm, | |
unsigned int | size, | |||
ITC_cb_Completion ** | free_cb, | |||
void ** | cb_parm_0, | |||
void ** | cb_parm_1, | |||
void ** | cb_parm_2 | |||
) |
Allocate a packet from a memory pool.
prm | Context parm (pointer to pool control info). | |
size | Size of allocation request, in bytes. | |
free_cb | Location to store pointer to 'free' callback function. | |
cb_parm_0 | Location to store callback parameter 0. | |
cb_parm_1 | Location to store callback parameter 1. | |
cb_parm_2 | Location to store callback parameter 2. |
References _LIM_Pool::fcb_p, _LIM_Pool::in_use, lim_pool_info_check(), _LIM_Pool::pkt_bytes, pool_free(), and _LIM_Pool_Pkt::pool_p.
Referenced by LIM_initialize(), LIM_pig_record(), lim_pkt_send_pkt(), and LIM_shutdown().
unsigned int LIM_pool_init | ( | LIM_Pool ** | pool_pp, | |
unsigned int | num_pkts, | |||
unsigned int | pkt_bytes | |||
) |
Initialize a memory pool.
pool_pp | Location to return pool control info pointer. | |
num_pkts | Number of packets to include in the pool. | |
pkt_bytes | Size of each packet, in bytes. |
References _LIM_Pool::fcb_p, _LIM_Pool::key, LIM_POOL_VALID_KEY, and _LIM_Pool::pkt_bytes.
Referenced by LIM_initialize().
unsigned int LIM_pool_shutdown | ( | LIM_Pool * | pool_p | ) |
Shutdown a memory pool by freeing its memory.
pool_p | Pointer to pool control information. |
References _LIM_Pool::fcb_p, _LIM_Pool::in_use, _LIM_Pool::key, and lim_pool_info_check().
Referenced by LIM_shutdown().