fragpool  20170302
Variable-sized packet memory management for embedded applications
Data Fields
fp_pool_t Struct Reference

#include <fragpool/fragpool.h>

Data Fields

 FP_POOL_STRUCT_COMMON
 
struct fp_fragment_t fragment []
 

Detailed Description

Bookkeeping for a fragment pool.

Warning
The only reason you get to see the internals is because this is C and we need to statically allocate pools in user code. You don't get to inspect or mutate the fields of this structure, so any descriptive comments are irrelevant to you.

Field Documentation

§ fragment

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).


The documentation for this struct was generated from the following file: