![]() |
![]() |
The structure describes the Heap Interface Table. More...
#include <pktlib.h>
Data Fields | |
uint8_t *(* | data_malloc )(uint32_t size) |
This API will be called by the packet library during heap creation to allocate data memory for the packets. | |
void(* | data_free )(uint8_t *ptrDataBuffer, uint32_t size) |
This API will be called by the packet library during heap deletion or resizing to clean up data memory for the packets. |
The structure describes the Heap Interface Table.
There could exist multiple heaps in the system. Heaps can have different properties depending upon the memory region (cached vs. non-cached) and how the data buffers need to be allocated. The table here provides a well defined interface which allows this information to be registered during heap creation.