Defines | Enumerations | Functions

alexb/lib/lwip/contrib/src/include/lwip/memp.h File Reference

#include "lwip/opt.h"
#include "lwip/memp_std.h"

Defines

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

Enumerations

enum  memp_t

Functions

void memp_init (void)
 Initialize this module.
void * memp_malloc (memp_t type)
 Get an element from a specific pool.
void memp_free (memp_t type, void *mem)
 Put an element back into its pool.

Define Documentation

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

Enumeration Type Documentation

enum memp_t

Function Documentation

void memp_free ( memp_t  type,
void *  mem 
)

Put an element back into its pool.

Parameters:
type the pool where to put mem
mem the memp element to free
void memp_init ( void   ) 

Initialize this module.

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

void* memp_malloc ( memp_t  type  ) 

Get an element from a specific pool.

Parameters:
type the pool to get an element from

the debug version has two more parameters:

Parameters:
file file name calling this function
line number of line where this function is called
Returns:
a pointer to the allocated memory or a NULL pointer on error
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines