Network Component
Version 7.19.0
MDK Middleware for IPv4 and IPv6 Networking
|
Events generated by the Network - Memory Management functions. More...
Functions | |
__STATIC_INLINE void | EvrNetMEM_InitMemory (void *base, uint32_t size, uint32_t limit0, uint32_t limit1) |
Event on initialize memory management (Op) More... | |
__STATIC_INLINE void | EvrNetMEM_AllocMemory (void *mem, uint32_t size, uint32_t used, uint32_t blocks) |
Event on request to allocate memory (Op) More... | |
__STATIC_INLINE void | EvrNetMEM_AllocLimitExceeded (uint32_t size, uint32_t used, uint32_t blocks) |
Event on memory allocation limit exceeded (Op) More... | |
__STATIC_INLINE void | EvrNetMEM_AllocOutOfMemory (uint32_t size, uint32_t used, uint32_t blocks) |
Event on out of memory error (Error) More... | |
__STATIC_INLINE void | EvrNetMEM_ShrinkMemory (void *mem, uint32_t new_size) |
Event on shrink memory block request (Op) More... | |
__STATIC_INLINE void | EvrNetMEM_FreeMemory (void *mem, uint32_t size, uint32_t used, uint32_t blocks) |
Event on request to free memory block (Op) More... | |
__STATIC_INLINE void | EvrNetMEM_FreeInvalidBlock (void *mem) |
Event on attempt to free an invalid memory (Error) More... | |
__STATIC_INLINE void | EvrNetMEM_FreeLinkCorrupted (void *link) |
Event on corrupted internal memory link (Error) More... | |
__STATIC_INLINE void | EvrNetMEM_UninitMemory (void) |
Event on de-initialize memory management (Op) More... | |
Events generated by the Network - Memory Management functions.
The Network Memory Management functions generate events that inform about the dynamic memory management events and help in troubleshooting.
__STATIC_INLINE void EvrNetMEM_AllocLimitExceeded | ( | uint32_t | size, |
uint32_t | used, | ||
uint32_t | blocks | ||
) |
Event on memory allocation limit exceeded (Op)
size | requested memory size in bytes |
used | used memory status in bytes |
blocks | number of used blocks status |
The event AllocMemory is created when the Network Component failed to allocate memory due to exceeded threshold level limit_0. This is not critical failure and the system will try to allocate memory again.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetMEM_AllocMemory | ( | void * | mem, |
uint32_t | size, | ||
uint32_t | used, | ||
uint32_t | blocks | ||
) |
Event on request to allocate memory (Op)
mem | pointer to allocated memory block |
size | requested memory size in bytes |
used | used memory status in bytes |
blocks | number of used blocks status |
The event AllocMemory is created when the Network Component attempts to allocate memory.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetMEM_AllocOutOfMemory | ( | uint32_t | size, |
uint32_t | used, | ||
uint32_t | blocks | ||
) |
Event on out of memory error (Error)
size | requested memory size in bytes |
used | used memory status in bytes |
blocks | number of used blocks status |
The event AllocOutOfMemory is created when the Network Component failed to allocate memory because the available memory is exhausted.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetMEM_FreeInvalidBlock | ( | void * | mem | ) |
Event on attempt to free an invalid memory (Error)
mem | pointer to invalid memory block |
The event FreeInvalidBlock is created when the Network Component attempts to release invalid memory.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetMEM_FreeLinkCorrupted | ( | void * | link | ) |
Event on corrupted internal memory link (Error)
link | corrupted link pointer |
The event FreeLinkCorrupted is created when the Network Component detects failure in internal memory handling, when trying to release a memory block. This is a fatal error, which happens when the memory is overwritten or when the application writes before or after the end of buffer.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetMEM_FreeMemory | ( | void * | mem, |
uint32_t | size, | ||
uint32_t | used, | ||
uint32_t | blocks | ||
) |
Event on request to free memory block (Op)
mem | pointer to the memory block |
size | size of the memory block in bytes |
used | used memory status in bytes |
blocks | number of used blocks status |
The event FreeMemory is created when the Network Component attempts to release memory.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetMEM_InitMemory | ( | void * | base, |
uint32_t | size, | ||
uint32_t | limit0, | ||
uint32_t | limit1 | ||
) |
Event on initialize memory management (Op)
base | pointer to the the memory pool |
size | size of the memory pool |
limit0 | usage limit 0 (limit for ethernet and BSD receive buffering) |
limit1 | usage limit 1 (limit for TCP send buffering) |
The event InitMemory is created when the Network Memory Management is initialized, that is, when the function netInitialize is executed.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetMEM_ShrinkMemory | ( | void * | mem, |
uint32_t | new_size | ||
) |
Event on shrink memory block request (Op)
mem | pointer to allocated memory block |
new_size | new block size |
The event ShrinkMemory is created when the Network Component attempts to shrink the allocated memory block. This happens when the size of the memory needed for the operation is not known at the beginning. The system assigns the maximum memory size for the required operation, and shrinks the memory when the data is created and the size is known.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetMEM_UninitMemory | ( | void | ) |
Event on de-initialize memory management (Op)
The event UninitMemory is created when the function netUninitialize is executed.