fragpool
20170302
Variable-sized packet memory management for embedded applications
|
#include <fragpool/fragpool.h>
Data Fields | |
uint8_t * | pool_start |
uint8_t * | pool_end |
uint8_t | pool_alignment |
uint8_t | fragment_count |
Prefix common to all pool structures.
uint8_t FP_POOL_STRUCT_COMMON_::fragment_count |
The number of fragments supported by the pool.
uint8_t FP_POOL_STRUCT_COMMON_::pool_alignment |
The alignment of the fragments, in bytes. E.g., a value of 2 ensures addresses are 16-bit aligned; a value of 4 ensures addresses are 32-bit aligned. Value must be a nonzero power of two.
uint8_t* FP_POOL_STRUCT_COMMON_::pool_end |
The address past the end of the pool. The number of octets in the pool is (pool_end-pool_start).
uint8_t* FP_POOL_STRUCT_COMMON_::pool_start |
The address of the start of the pool.