fragpool
20170302
Variable-sized packet memory management for embedded applications
|
#include <fragpool/fragpool.h>
Data Fields | |
uint8_t * | start |
fp_ssize_t | length |
Bookkeeping for a fragment within the pool.
The fragment state is allocated if its memory has been made available to a caller; available if its memory has been returned to the pool; inactive if the pool partitions do not include this fragment.
fp_ssize_t fp_fragment_t::length |
Length of the pool. A negative value indicates an allocated fragment; a positive value indicates an available fragment; a zero value indicates an inactive fragment.
uint8_t* fp_fragment_t::start |
Address within the corresponding pool's memory space. This pointer must meet the pool's fragment alignment restrictions.