Network Component  Version 7.8.0
MDK Middleware for IPv4 and IPv6 Networking
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
NetMEM: Memory Management

Events generated by the Network - Memory Management functions. More...

Functions

__STATIC_INLINE void EvrNetMEM_InitMemory (uint32_t pool_size, uint32_t limit0, uint32_t limit1)
 Event on memory management initialize (Op) More...
 
__STATIC_INLINE void EvrNetMEM_AllocMemory (uint32_t size, uint32_t used, uint32_t blocks)
 Event on memory allocate request (Op) More...
 
__STATIC_INLINE void EvrNetMEM_AllocLimitExceeded (uint32_t size, uint32_t used, uint32_t blocks)
 Event on memory allocate limit exceeded (Op) More...
 
__STATIC_INLINE void EvrNetMEM_AllocOutOfMemory (uint32_t size, uint32_t used, uint32_t blocks)
 Event on memory allocate out of memory error (Error) More...
 
__STATIC_INLINE void EvrNetMEM_ShrinkMemory (uint32_t new_size, uint32_t old_size)
 Event on memory shrink block request (Op) More...
 
__STATIC_INLINE void EvrNetMEM_FreeMemory (uint32_t size, uint32_t used, uint32_t blocks)
 Event on memory free request (Op) More...
 
__STATIC_INLINE void EvrNetMEM_FreeInvalidBlock (uint32_t size)
 Event on memory free an invalid block (Error) More...
 
__STATIC_INLINE void EvrNetMEM_FreeLinkCorrupted (uint32_t size)
 Event on memory free link corrupted (Error) More...
 
__STATIC_INLINE void EvrNetMEM_UninitMemory (void)
 Event on memory management de-initialize (Op) More...
 

Description

Events generated by the Network - Memory Management functions.

Function Documentation

__STATIC_INLINE void EvrNetMEM_AllocLimitExceeded ( uint32_t  size,
uint32_t  used,
uint32_t  blocks 
)

Event on memory allocate limit exceeded (Op)

Parameters
sizerequested memory size in bytes
usedused memory status in bytes
blocksnumber of used blocks status
__STATIC_INLINE void EvrNetMEM_AllocMemory ( uint32_t  size,
uint32_t  used,
uint32_t  blocks 
)

Event on memory allocate request (Op)

Parameters
sizerequested memory size in bytes
usedused memory status in bytes
blocksnumber of used blocks status
__STATIC_INLINE void EvrNetMEM_AllocOutOfMemory ( uint32_t  size,
uint32_t  used,
uint32_t  blocks 
)

Event on memory allocate out of memory error (Error)

Parameters
sizerequested memory size in bytes
usedused memory status in bytes
blocksnumber of used blocks status
__STATIC_INLINE void EvrNetMEM_FreeInvalidBlock ( uint32_t  size)

Event on memory free an invalid block (Error)

Parameters
sizesize of the memory block to free
__STATIC_INLINE void EvrNetMEM_FreeLinkCorrupted ( uint32_t  size)

Event on memory free link corrupted (Error)

Parameters
sizesize of the memory block to free
__STATIC_INLINE void EvrNetMEM_FreeMemory ( uint32_t  size,
uint32_t  used,
uint32_t  blocks 
)

Event on memory free request (Op)

Parameters
sizesize of the memory block to free
usedused memory status in bytes
blocksnumber of used blocks status
__STATIC_INLINE void EvrNetMEM_InitMemory ( uint32_t  pool_size,
uint32_t  limit0,
uint32_t  limit1 
)

Event on memory management initialize (Op)

Parameters
pool_sizesize of the memory pool
limit0usage limit 0 (limit used in ethernet and bsd receive buffering)
limit1usage limit 1 (limit used in TCP send buffering)
__STATIC_INLINE void EvrNetMEM_ShrinkMemory ( uint32_t  new_size,
uint32_t  old_size 
)

Event on memory shrink block request (Op)

Parameters
new_sizenew block size
old_sizecurrent block size
__STATIC_INLINE void EvrNetMEM_UninitMemory ( void  )

Event on memory management de-initialize (Op)