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

#include <fragpool/fragpool.h>

Data Fields

uint8_t * pool_start
 
uint8_t * pool_end
 
uint8_t pool_alignment
 
uint8_t fragment_count
 

Detailed Description

Prefix common to all pool structures.

Note
This structure does not exist in its own right; the sequence of tags is generated in each structure using the FP_POOL_STRUCT_COMMON macro.

Field Documentation

§ fragment_count

uint8_t FP_POOL_STRUCT_COMMON_::fragment_count

The number of fragments supported by the pool.

§ pool_alignment

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.

§ pool_end

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

§ pool_start

uint8_t* FP_POOL_STRUCT_COMMON_::pool_start

The address of the start of the pool.


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