memp.h
ubixos/types.h
net/debug.h
net/arch/cc.h
net/lwipopts.h
src/sys/include/net/stats.h
src/sys/net/api/api_lib.c
src/sys/net/api/api_msg.c
src/sys/net/api/tcpip.c
src/sys/net/net/init.c
ubixos/types.h
sys/_types.h
net/lwipopts.h
src/sys/include/net/memp.h
net/debug.h
net/arch/cc.h
src/sys/include/net/stats.h
src/sys/net/net/sys_arch.c
src/sys/net/net/bot.c
src/sys/net/api/tcpip.c
src/sys/net/net/shell.c
src/sys/net/api/api_lib.c
src/sys/net/net/init.c
src/sys/include/net/memp.h
src/sys/net/api/api_msg.c
memp_register_reclaim
t
f
arg
memp_t
MEMP_PBUF
MEMP_UDP_PCB
MEMP_TCP_PCB
MEMP_TCP_PCB_LISTEN
MEMP_TCP_SEG
MEMP_NETBUF
MEMP_NETCONN
MEMP_API_MSG
MEMP_TCPIP_MSG
MEMP_SYS_TIMEOUT
MEMP_MAX
void void memp_free (memp_t type, void *mem) memp_free memp_t type void * mem accept_function netconn_delete tcpip_apimsg
void void memp_freep (memp_t type, void *mem) memp_freep memp_t type void * mem netbuf_chain netbuf_delete netconn_bind netconn_close netconn_connect netconn_delete netconn_listen netconn_new netconn_recv netconn_send netconn_write tcpip_thread
void void memp_init (void) memp_init void net_init
void * void* memp_malloc (memp_t type) memp_malloc memp_t type
void * void* memp_malloc2 (memp_t type) memp_malloc2 memp_t type
void * void* memp_mallocp (memp_t type) memp_mallocp memp_t type accept_function netbuf_new netconn_bind netconn_close netconn_connect netconn_delete netconn_listen netconn_new netconn_recv netconn_send netconn_write recv_udp tcpip_apimsg tcpip_input
void * void* memp_realloc (memp_t fromtype, memp_t totype, void *mem) memp_realloc memp_t fromtype memp_t totype void * mem

    /*
    *Copyright(c)2001,SwedishInstituteofComputerScience.
    *Allrightsreserved.
    *
    *Redistributionanduseinsourceandbinaryforms,withorwithout
    *modification,arepermittedprovidedthatthefollowingconditions
    *aremet:
    *1.Redistributionsofsourcecodemustretaintheabovecopyright
    *notice,thislistofconditionsandthefollowingdisclaimer.
    *2.Redistributionsinbinaryformmustreproducetheabovecopyright
    *notice,thislistofconditionsandthefollowingdisclaimerinthe
    *documentationand/orothermaterialsprovidedwiththedistribution.
    *3.NeitherthenameoftheInstitutenorthenamesofitscontributors
    *maybeusedtoendorseorpromoteproductsderivedfromthissoftware
    *withoutspecificpriorwrittenpermission.
    *
    *THISSOFTWAREISPROVIDEDBYTHEINSTITUTEANDCONTRIBUTORS``ASIS''AND
    *ANYEXPRESSORIMPLIEDWARRANTIES,INCLUDING,BUTNOTLIMITEDTO,THE
    *IMPLIEDWARRANTIESOFMERCHANTABILITYANDFITNESSFORAPARTICULARPURPOSE
    *AREDISCLAIMED.INNOEVENTSHALLTHEINSTITUTEORCONTRIBUTORSBELIABLE
    *FORANYDIRECT,INDIRECT,INCIDENTAL,SPECIAL,EXEMPLARY,ORCONSEQUENTIAL
    *DAMAGES(INCLUDING,BUTNOTLIMITEDTO,PROCUREMENTOFSUBSTITUTEGOODS
    *ORSERVICES;LOSSOFUSE,DATA,ORPROFITS;ORBUSINESSINTERRUPTION)
    *HOWEVERCAUSEDANDONANYTHEORYOFLIABILITY,WHETHERINCONTRACT,STRICT
    *LIABILITY,ORTORT(INCLUDINGNEGLIGENCEOROTHERWISE)ARISINGINANYWAY
    *OUTOFTHEUSEOFTHISSOFTWARE,EVENIFADVISEDOFTHEPOSSIBILITYOF
    *SUCHDAMAGE.
    *
    *ThisfileispartofthelwIPTCP/IPstack.
    *
    *Author:AdamDunkels<adam@sics.se>
    *
    *$Id: memp_8h.xml 88 2016-01-12 00:11:29Z reddawg $
    */

    #ifndef__LWIP_MEMP_H__
    #define__LWIP_MEMP_H__

    #include<ubixos/types.h>

    #include"net/debug.h"
    #include"net/arch/cc.h"
    #include"net/lwipopts.h"

    typedefenum{
    MEMP_PBUF,
    MEMP_UDP_PCB,
    MEMP_TCP_PCB,
    MEMP_TCP_PCB_LISTEN,
    MEMP_TCP_SEG,

    MEMP_NETBUF,
    MEMP_NETCONN,
    MEMP_API_MSG,
    MEMP_TCPIP_MSG,

    MEMP_SYS_TIMEOUT,

    MEMP_MAX
    }memp_t;

    voidmemp_init(void);

    void*memp_malloc(memp_ttype);
    void*memp_mallocp(memp_ttype);
    void*memp_malloc2(memp_ttype);
    void*memp_realloc(memp_tfromtype,memp_ttotype,void*mem);
    voidmemp_free(memp_ttype,void*mem);
    voidmemp_freep(memp_ttype,void*mem);

    #ifMEMP_RECLAIM
    typedefuInt8(*memp_reclaim_func)(void*arg,memp_ttype);
    voidmemp_register_reclaim(memp_ttype,memp_reclaim_funcf,void*arg);
    #else
    #definememp_register_reclaim(t,f,arg)
    #endif/*MEMP_RECLAIM*/

    #endif/*__LWIP_MEMP_H__*/