21 #ifndef __CCL_POOL_H__
22 # define __CCL_POOL_H__
47 ccl_pool_create (
const char *poolname,
size_t object_size,
int nb_elements);
void ccl_pools_display_info(ccl_log_type lt)
Display statistics about all pools.
void ccl_pool_release(ccl_pool *pool, void *ptr)
Releases the block pointed by ptr.
void ccl_pool_collect(ccl_pool *pool)
Tries to collect completely free packets.
void ccl_pool_display_info(ccl_log_type lt, ccl_pool *pool)
Display statictics about pool.
void ccl_pools_collect(void)
Collect packets in all pools.
void ccl_pool_delete(ccl_pool *pool)
Deletion of pool.
void * ccl_pool_alloc(ccl_pool *pool)
Allocates a new object.
Some useful and common macros.
ccl_pool * ccl_pool_create(const char *poolname, size_t object_size, int nb_elements)
Creates a pool named by poolname that allocates packets of nb_elements objects each one having a size...
struct ccl_pool_st ccl_pool
Abstract type of a Pool.
enum ccl_log_type_enum ccl_log_type
Enum that indicates which kind of message has to be displayed. Each kind of message can be displayed ...