fragpool
20170302
Variable-sized packet memory management for embedded applications
|
#include <fragpool/fragpool.h>
Data Fields | |
FP_POOL_STRUCT_COMMON | |
struct fp_fragment_t | fragment [] |
Bookkeeping for a fragment pool.
struct fp_fragment_t fp_pool_t::fragment[] |
The fragment array. Although in this declaration it is a flexible array member, in general it should have at least two members.
The fragments partition the pool, starting with the first fragment which begins at the pool start. All inactive fragments occur at the end. At least one of any two adjacent active fragments must be allocated (if two active available fragments were adjacent, they should have been merged).