![]() |
STM32F769IDiscovery
1.00
uDANTE Audio Networking with STM32F7 DISCO board
|
#include "lwip/opt.h"#include "lwip/memp.h"#include "lwip/pbuf.h"#include "lwip/udp.h"#include "lwip/raw.h"#include "lwip/igmp.h"#include "lwip/api.h"#include "lwip/priv/api_msg.h"#include "lwip/sockets.h"#include "lwip/sys.h"#include "lwip/lwip_timers.h"#include "lwip/stats.h"#include "netif/etharp.h"#include "lwip/ip_frag.h"#include "lwip/dns.h"#include "lwip/netdb.h"#include "netif/ppp/ppp.h"#include "netif/ppp/pppos.h"#include "netif/ppp/pppoe.h"#include "netif/ppp/pppol2tp.h"#include "lwip/nd6.h"#include "lwip/ip6_frag.h"#include "lwip/mld6.h"#include "lwip/tcp.h"#include "lwip/tcpip.h"#include "lwip/priv/tcp_priv.h"#include "lwip/priv/tcpip_priv.h"#include <string.h>#include "lwip/priv/memp_std.h"Go to the source code of this file.
Macros | |
| #define | LWIP_MEMPOOL(name, num, size, desc) LWIP_MEMPOOL_DECLARE(name,num,size,desc) |
| #define | LWIP_MEMPOOL(name, num, size, desc) &memp_ ## name, |
Functions | |
| void | memp_init_pool (const struct memp_desc *desc) |
| void | memp_init (void) |
| void * | memp_malloc_pool (const struct memp_desc *desc) |
| void * | memp_malloc (memp_t type) |
| void | memp_free_pool (const struct memp_desc *desc, void *mem) |
| void | memp_free (memp_t type, void *mem) |
Variables | |
| const struct memp_desc * | memp_pools [MEMP_MAX] |
Dynamic pool memory manager
lwIP has dedicated pools for many structures (netconn, protocol control blocks, packet buffers, ...). All these pools are managed here.
Definition in file memp.c.
| #define LWIP_MEMPOOL | ( | name, | |
| num, | |||
| size, | |||
| desc | |||
| ) | LWIP_MEMPOOL_DECLARE(name,num,size,desc) |
| #define LWIP_MEMPOOL | ( | name, | |
| num, | |||
| size, | |||
| desc | |||
| ) | &memp_ ## name, |
| void memp_free | ( | memp_t | type, |
| void * | mem | ||
| ) |
| void memp_free_pool | ( | const struct memp_desc * | desc, |
| void * | mem | ||
| ) |
| void memp_init | ( | void | ) |
| void* memp_malloc | ( | memp_t | type | ) |
Get an element from a specific pool.
| type | the pool to get an element from |
the debug version has two more parameters:
| file | file name calling this function |
| line | number of line where this function is called |
1.8.11