# /space/home/slher/rel/Beken/v6_4_5/macsw/modules/common/src/co_pool.h File Reference

Copyright (C) RivieraWaves 2011-2019. More...

`#include "co_int.h"`

Go to the source code of this file.

## Data Structures
struct | co_pool_hdr
| Generic descriptor header of a pool element. More...
struct | co_pool
| Structure containing the pool's information: free list pointer and remaining number of elements available. More...
## Functions
void | co_pool_init (struct co_pool *pool, struct co_pool_hdr *pool_hdr, void *elements, uint32_t elem_size, uint32_t elem_cnt)
| Initialize the pool.
struct co_pool_hdr * | co_pool_alloc (struct co_pool *pool, uint32_t nbelem)
| Allocate elements from the pool.
void | co_pool_free (struct co_pool *pool, struct co_pool_hdr *elements, uint32_t nbelem)
| Release elements from the pool.

## Detailed Description

Copyright (C) RivieraWaves 2011-2019.

File Containing:

- The declaration of the structures which are involved in the pool management operations.
- The declaration of the APIs which are used to initialize the linked list of element within the pools as well as the APIs which are used to allocate/release elements from/to the pools.

Definition in file co_pool.h.