|  | WE310F5
    39.00.000
    | 
This file contains the public APIs and structures of the heap module. More...
#include <stdlib.h>Go to the source code of this file.
| Data Structures | |
| struct | M2MB_ALLOC_NODE_DATA | 
| Structure for node data.  More... | |
| Macros | |
| #define | MALLOC(len) m2mb_os_malloc(len) | 
| #define | CALLOC(nitems, size) m2mb_os_calloc( nitems, size) | 
| #define | FREE(ptr) m2mb_os_free(ptr) | 
| #define | REALLOC(ptr, len) m2mb_os_realloc(ptr,len) | 
| typedef struct M2MB_ALLOC_NODE_DATA | M2MB_HEAP_ALLOC_NODE_DATA_T | 
| Structure for node data.  More... | |
| void * | m2mb_heap_malloc (UINT32 reqBytes, char *file, int line) | 
| m2mb_heap_malloc allocates the memory for requested bytes(size) along with 20 bytes for M2MB_HEAP_ALLOC_NODE_T.  More... | |
| void * | m2mb_heap_realloc (void *ptr, UINT32 reqBytes, char *file, int line) | 
| m2mb_heap_realloc is called to reallocate the memory of size reqBytes pointed by pointer ptr.  More... | |
| void | m2mb_heap_free (void *ptr, char *file, int line) | 
| m2mb_heap_free is called to frees the memory pointed by ptr.  More... | |
| VOID | m2mb_heap_log_init (VOID) | 
| m2mb_heap_log_init is called to initialize the heap allocation list.  More... | |
| M2MB_HEAP_ALLOC_NODE_DATA_T * | m2mb_heap_getList (VOID) | 
| m2mb_heap_getList is called to get the pointer to the current node in the M2MB_HEAP_LOG_LIST_T.  More... | |
| VOID | m2mb_heap_resetTrace (VOID) | 
| m2mb_heap_resetTrace resets the current node in the list as the trace node.  More... | |
| UINT32 | m2mb_heap_getSize (UINT8 *ptr) | 
| m2mb_heap_getSize returns the size of current node data in bytes.  More... | |
| INT32 | m2mb_heap_stat (UINT32 *total_bytes, UINT32 *free_bytes) | 
| m2mb_heap_stat is called to get the status.  More... | |
This file contains the public APIs and structures of the heap module.
we866e4/epl/inc/modules/m2mb_heap.h
Definition in file m2mb_heap.h.
| #define CALLOC | ( | nitems, | |
| size | |||
| ) | m2mb_os_calloc( nitems, size) | 
Definition at line 38 of file m2mb_heap.h.
| #define FREE | ( | ptr | ) | m2mb_os_free(ptr) | 
Definition at line 39 of file m2mb_heap.h.
| #define MALLOC | ( | len | ) | m2mb_os_malloc(len) | 
Definition at line 37 of file m2mb_heap.h.
| #define REALLOC | ( | ptr, | |
| len | |||
| ) | m2mb_os_realloc(ptr,len) | 
Definition at line 40 of file m2mb_heap.h.