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

#include <fragpool/fragpool.h>

Data Fields

uint8_t * start
 
fp_ssize_t length
 

Detailed Description

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.

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

§ length

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.

§ start

uint8_t* fp_fragment_t::start

Address within the corresponding pool's memory space. This pointer must meet the pool's fragment alignment restrictions.


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