Microchip® Advanced Software Framework

memp.h File Reference
#include "lwip/opt.h"
#include "lwip/memp_std.h"

Macros

#define LWIP_MEMPOOL(name, num, size, desc)   MEMP_##name,
 

Enumerations

enum  memp_t { MEMP_MAX }
 

Functions

void memp_free (memp_t type, void *mem)
 Put an element back into its pool. More...
 
void memp_init (void)
 Initialize this module. More...
 
voidmemp_malloc (memp_t type)
 

#define LWIP_MEMPOOL (   name,
  num,
  size,
  desc 
)    MEMP_##name,

enum memp_t
Enumerator
MEMP_MAX 

void memp_free ( memp_t  type,
void mem 
)
void memp_init ( void  )

Initialize this module.

Carves out memp_memory into linked lists for each pool-type.

References LWIP_MEM_ALIGN, max, memp, MEMP_MAX, memp_memory, MEMP_SIZE, memp_sizes, MEMP_STATS_AVAIL, memp::next, and NULL.

Referenced by lwip_init().