UbixOS  2.0
Internal memory pools
Collaboration diagram for Internal memory pools:

Macros

#define MEMP_NUM_API_MSG   MEMP_NUM_TCPIP_MSG_API
 
#define MEMP_NUM_ARP_QUEUE   30
 
#define MEMP_NUM_DNS_API_MSG   MEMP_NUM_TCPIP_MSG_API
 
#define MEMP_NUM_FRAG_PBUF   15
 
#define MEMP_NUM_IGMP_GROUP   8
 
#define MEMP_NUM_LOCALHOSTLIST   1
 
#define MEMP_NUM_NETBUF   2
 
#define MEMP_NUM_NETCONN   4
 
#define MEMP_NUM_NETDB   1
 
#define MEMP_NUM_NETIFAPI_MSG   MEMP_NUM_TCPIP_MSG_API
 
#define MEMP_NUM_PBUF   16
 
#define MEMP_NUM_RAW_PCB   4
 
#define MEMP_NUM_REASSDATA   5
 
#define MEMP_NUM_SOCKET_SETGETSOCKOPT_DATA   MEMP_NUM_TCPIP_MSG_API
 
#define MEMP_NUM_SYS_TIMEOUT   (LWIP_TCP + IP_REASSEMBLY + LWIP_ARP + (2*LWIP_DHCP) + LWIP_AUTOIP + LWIP_IGMP + LWIP_DNS + (PPP_SUPPORT*6*MEMP_NUM_PPP_PCB) + (LWIP_IPV6 ? (1 + LWIP_IPV6_REASS + LWIP_IPV6_MLD) : 0))
 
#define MEMP_NUM_TCP_PCB   5
 
#define MEMP_NUM_TCP_PCB_LISTEN   8
 
#define MEMP_NUM_TCP_SEG   16
 
#define MEMP_NUM_TCPIP_MSG_API   8
 
#define MEMP_NUM_TCPIP_MSG_INPKT   8
 
#define MEMP_NUM_UDP_PCB   4
 
#define PBUF_POOL_SIZE   16
 

Detailed Description

Macro Definition Documentation

◆ MEMP_NUM_API_MSG

#define MEMP_NUM_API_MSG   MEMP_NUM_TCPIP_MSG_API

MEMP_NUM_API_MSG: the number of concurrently active calls to various socket, netconn, and tcpip functions

Definition at line 462 of file opt.h.

◆ MEMP_NUM_ARP_QUEUE

#define MEMP_NUM_ARP_QUEUE   30

MEMP_NUM_ARP_QUEUE: the number of simultaneously queued outgoing packets (pbufs) that are waiting for an ARP request (to resolve their destination address) to finish. (requires the ARP_QUEUEING option)

Definition at line 379 of file opt.h.

◆ MEMP_NUM_DNS_API_MSG

#define MEMP_NUM_DNS_API_MSG   MEMP_NUM_TCPIP_MSG_API

MEMP_NUM_DNS_API_MSG: the number of concurrently active calls to netconn_gethostbyname

Definition at line 468 of file opt.h.

◆ MEMP_NUM_FRAG_PBUF

#define MEMP_NUM_FRAG_PBUF   15

MEMP_NUM_FRAG_PBUF: the number of IP fragments simultaneously sent (fragments, not whole packets!). This is only used with LWIP_NETIF_TX_SINGLE_PBUF==0 and only has to be > 1 with DMA-enabled MACs where the packet is not yet sent when netif->output returns.

Definition at line 369 of file opt.h.

◆ MEMP_NUM_IGMP_GROUP

#define MEMP_NUM_IGMP_GROUP   8

MEMP_NUM_IGMP_GROUP: The number of multicast groups whose network interfaces can be members at the same time (one per netif - allsystems group -, plus one per netif membership). (requires the LWIP_IGMP option)

Definition at line 389 of file opt.h.

◆ MEMP_NUM_LOCALHOSTLIST

#define MEMP_NUM_LOCALHOSTLIST   1

MEMP_NUM_LOCALHOSTLIST: the number of host entries in the local host list if DNS_LOCAL_HOSTLIST_IS_DYNAMIC==1.

Definition at line 448 of file opt.h.

◆ MEMP_NUM_NETBUF

#define MEMP_NUM_NETBUF   2

MEMP_NUM_NETBUF: the number of struct netbufs. (only needed if you use the sequential API, like api_lib.c)

Definition at line 406 of file opt.h.

◆ MEMP_NUM_NETCONN

#define MEMP_NUM_NETCONN   4

MEMP_NUM_NETCONN: the number of struct netconns. (only needed if you use the sequential API, like api_lib.c)

Definition at line 414 of file opt.h.

◆ MEMP_NUM_NETDB

#define MEMP_NUM_NETDB   1

MEMP_NUM_NETDB: the number of concurrently running lwip_addrinfo() calls (before freeing the corresponding memory using lwip_freeaddrinfo()).

Definition at line 440 of file opt.h.

◆ MEMP_NUM_NETIFAPI_MSG

#define MEMP_NUM_NETIFAPI_MSG   MEMP_NUM_TCPIP_MSG_API

MEMP_NUM_NETIFAPI_MSG: the number of concurrently active calls to the netifapi functions

Definition at line 482 of file opt.h.

◆ MEMP_NUM_PBUF

#define MEMP_NUM_PBUF   16

MEMP_NUM_PBUF: the number of memp struct pbufs (used for PBUF_ROM and PBUF_REF). If the application sends a lot of data out of ROM (or other static memory), this should be set high.

Definition at line 309 of file opt.h.

◆ MEMP_NUM_RAW_PCB

#define MEMP_NUM_RAW_PCB   4

MEMP_NUM_RAW_PCB: Number of raw connection PCBs (requires the LWIP_RAW option)

Definition at line 317 of file opt.h.

◆ MEMP_NUM_REASSDATA

#define MEMP_NUM_REASSDATA   5

MEMP_NUM_REASSDATA: the number of IP packets simultaneously queued for reassembly (whole packets, not fragments!)

Definition at line 358 of file opt.h.

◆ MEMP_NUM_SOCKET_SETGETSOCKOPT_DATA

#define MEMP_NUM_SOCKET_SETGETSOCKOPT_DATA   MEMP_NUM_TCPIP_MSG_API

MEMP_NUM_SOCKET_SETGETSOCKOPT_DATA: the number of concurrently active calls to getsockopt/setsockopt

Definition at line 475 of file opt.h.

◆ MEMP_NUM_SYS_TIMEOUT

#define MEMP_NUM_SYS_TIMEOUT   (LWIP_TCP + IP_REASSEMBLY + LWIP_ARP + (2*LWIP_DHCP) + LWIP_AUTOIP + LWIP_IGMP + LWIP_DNS + (PPP_SUPPORT*6*MEMP_NUM_PPP_PCB) + (LWIP_IPV6 ? (1 + LWIP_IPV6_REASS + LWIP_IPV6_MLD) : 0))

MEMP_NUM_SYS_TIMEOUT: the number of simultaneously active timeouts. The default number of timeouts is calculated here for all enabled modules. The formula expects settings to be either '0' or '1'.

Definition at line 398 of file opt.h.

◆ MEMP_NUM_TCP_PCB

#define MEMP_NUM_TCP_PCB   5

MEMP_NUM_TCP_PCB: the number of simultaneously active TCP connections. (requires the LWIP_TCP option)

Definition at line 334 of file opt.h.

◆ MEMP_NUM_TCP_PCB_LISTEN

#define MEMP_NUM_TCP_PCB_LISTEN   8

MEMP_NUM_TCP_PCB_LISTEN: the number of listening TCP connections. (requires the LWIP_TCP option)

Definition at line 342 of file opt.h.

◆ MEMP_NUM_TCP_SEG

#define MEMP_NUM_TCP_SEG   16

MEMP_NUM_TCP_SEG: the number of simultaneously queued TCP segments. (requires the LWIP_TCP option)

Definition at line 350 of file opt.h.

◆ MEMP_NUM_TCPIP_MSG_API

#define MEMP_NUM_TCPIP_MSG_API   8

MEMP_NUM_TCPIP_MSG_API: the number of struct tcpip_msg, which are used for callback/timeout API communication. (only needed if you use tcpip.c)

Definition at line 423 of file opt.h.

◆ MEMP_NUM_TCPIP_MSG_INPKT

#define MEMP_NUM_TCPIP_MSG_INPKT   8

MEMP_NUM_TCPIP_MSG_INPKT: the number of struct tcpip_msg, which are used for incoming packets. (only needed if you use tcpip.c)

Definition at line 432 of file opt.h.

◆ MEMP_NUM_UDP_PCB

#define MEMP_NUM_UDP_PCB   4

MEMP_NUM_UDP_PCB: the number of UDP protocol control blocks. One per active UDP "connection". (requires the LWIP_UDP option)

Definition at line 326 of file opt.h.

◆ PBUF_POOL_SIZE

#define PBUF_POOL_SIZE   16

PBUF_POOL_SIZE: the number of buffers in the pbuf pool.

Definition at line 455 of file opt.h.