55 #ifndef ti_sysbios_runtime_Memory__include 56 #define ti_sysbios_runtime_Memory__include 69 #define ti_sysbios_runtime_Memory_long_names 70 #include "Memory_defs.h" 72 #define Memory_Size size_t 86 #define Memory_Q_BLOCKING (1) 109 typedef void * (*IHeap_AllocFxn) (
void *, size_t, size_t,
Error_Block *);
119 typedef struct IHeap_Object {
124 } IHeap_Object, *IHeap_Handle;
190 extern void Memory_free(IHeap_Handle heap,
void * block,
size_t size);
284 #undef ti_sysbios_runtime_Memory_long_names 285 #include "Memory_defs.h" size_t totalSize
total size (in MADUs) of heap.
Definition: Memory.h:98
void(* IHeap_FreeFxn)(void *, void *, size_t)
Definition: Memory.h:110
void Memory_free(IHeap_Handle heap, void *block, size_t size)
Frees the space if the heap manager offers such functionality.
size_t largestFreeSize
current largest contiguous free block (in MADUs)
Definition: Memory.h:106
IHeap_Handle Memory_defaultHeapInstance
The default heap.
IHeap_Handle Memory_getDefaultHeap(void)
Get the default heap handle.
void *(* IHeap_AllocFxn)(void *, size_t, size_t, Error_Block *)
Definition: Memory.h:109
void * Memory_alloc(IHeap_Handle heap, size_t size, size_t align, Error_Block *eb)
Allocate a block of memory from a heap.
size_t Memory_getMaxDefaultTypeAlign(void)
Return the largest alignment required by the target.
bool(* IHeap_IsBlockingFxn)(void *)
Definition: Memory.h:111
void Memory_setDefaultHeap(IHeap_Handle heap)
Set the default heap handle.
void * Memory_valloc(IHeap_Handle heap, size_t size, size_t align, char value, Error_Block *eb)
Allocate a block of memory from a heap and initialize the contents to the value specified.
void * Memory_calloc(IHeap_Handle heap, size_t size, size_t align, Error_Block *eb)
Allocate a block of memory from a heap and zero out the contents.
Error block.
Definition: Error.h:152
Interface to heap functions.
void Memory_getStats(IHeap_Handle heap, Memory_Stats *stats)
Obtain statistics from a heap.
Memory heap statistics.
Definition: Memory.h:94
size_t totalFreeSize
current size (in MADUs) of free memory in the heap
Definition: Memory.h:102
void(* IHeap_GetStatsFxn)(void *, Memory_Stats *)
Definition: Memory.h:112
bool Memory_query(IHeap_Handle heap, int qual)
Test for a particular heap quality.