mem.h
ubixos/types.h
net/debug.h
net/opt.h
net/arch.h
src/sys/include/net/tcp.h
src/sys/net/net/bot.c
src/sys/net/net/init.c
src/sys/net/net/shell.c
src/sys/net/netif/ethernetif.c
src/sys/net/netif/loopif.c
arch/cpu.h
ubixos/types.h
sys/_types.h
net/arch.h
net/lwipopts.h
src/sys/include/net/mem.h
net/opt.h
net/debug.h
arch/cc.h
src/sys/net/net/udpecho.c
src/sys/net/netif/tcpdump.c
src/sys/net/netif/loopif.c
src/sys/include/net/tcp.h
src/sys/net/netif/ethernetif.c
src/sys/net/net/bot.c
src/sys/net/api/tcpip.c
src/sys/include/net/tcpip.h
src/sys/include/net/api_msg.h
src/sys/net/net/shell.c
src/sys/net/api/api_lib.c
src/sys/include/net/mem.h
src/sys/net/net/init.c
src/sys/include/net/api.h
src/sys/net/api/sockets.c
src/sys/net/api/api_msg.c
MEM_ALIGN
addr
(void *)MEM_ALIGN_SIZE((uInt32)addr)
MEM_ALIGN_SIZE
size
(size + \ ((((size) % (MEM_ALIGNMENT)) == 0)? 0 : \ ((MEM_ALIGNMENT) - ((size) % (MEM_ALIGNMENT)))))
mem_register_reclaim
f
arg
uInt16 typedef uInt16 mem_size_t mem_size_t
void void mem_free (void *mem) mem_free void * mem
void void mem_init (void) mem_init void net_init
void * void* mem_malloc (mem_size_t size) mem_malloc mem_size_t size ethernetif_init
void * void* mem_malloc2 (mem_size_t size) mem_malloc2 mem_size_t size
void * void* mem_realloc (void *mem, mem_size_t size) mem_realloc void * mem mem_size_t size
void * void* mem_reallocm (void *mem, mem_size_t size) mem_reallocm void * mem mem_size_t size

    /*
    *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: mem_8h.xml 88 2016-01-12 00:11:29Z reddawg $
    */
    #ifndef__LWIP_MEM_H__
    #define__LWIP_MEM_H__

    #include<ubixos/types.h>

    #include"net/debug.h"
    #include"net/opt.h"
    #include"net/arch.h"

    #ifMEM_SIZE>64000l
    typedefuInt32mem_size_t;
    #else
    typedefuInt16mem_size_t;
    #endif/*MEM_SIZE>64000*/

    voidmem_init(void);

    void*mem_malloc(mem_size_tsize);
    void*mem_malloc2(mem_size_tsize);
    voidmem_free(void*mem);
    void*mem_realloc(void*mem,mem_size_tsize);
    void*mem_reallocm(void*mem,mem_size_tsize);

    #ifdefMEM_PERF
    voidmem_perf_start(void);
    voidmem_perf_init(char*fname);
    #endif/*MEM_PERF*/

    #ifdefMEM_RECLAIM
    typedefmem_size_t(*mem_reclaim_func)(void*arg,mem_size_tsize);
    voidmem_register_reclaim(mem_reclaim_funcf,void*arg);
    voidmem_reclaim(unsignedintsize);
    #else
    #definemem_register_reclaim(f,arg)
    #endif/*MEM_RECLAIM*/

    #defineMEM_ALIGN_SIZE(size)(size+\
    ((((size)%(MEM_ALIGNMENT))==0)?0:\
    ((MEM_ALIGNMENT)-((size)%(MEM_ALIGNMENT)))))

    #defineMEM_ALIGN(addr)(void*)MEM_ALIGN_SIZE((uInt32)addr)

    #endif/*__LWIP_MEM_H__*/