Return the size that a particular pointer was allocated with.
Associate a private lock pointer with a heap The lock argument is supplied to the MULTI_HEAP_LOCK() and MULTI_HEAP_UNLOCK() macros, defined in multi_heap_platform.h. The lock in question must be recursive. When the heap is first registered, the associated lock is NULL.
malloc() a buffer in a given heap Semantics are the same as standard malloc(), only the returned buffer will be allocated in the specified heap.
Check heap integrity Walks the heap and checks all heap data structures are valid. If any errors are detected, an error-specific message can be optionally printed to stderr. Print behaviour can be overridden at compile time by defining MULTI_CHECK_FAIL_PRINTF in multi_heap_platform.h.
Return metadata about a given heap Fills a multi_heap_info_t structure with information about the specified heap.
free() a buffer in a given heap. Semantics are the same as standard free(), only the argument 'p' must be NULL or have been allocated in the specified heap.
realloc() a buffer in a given heap. Semantics are the same as standard realloc(), only the argument 'p' must be NULL or have been allocated in the specified heap.
Dump heap information to stdout For debugging purposes, this function dumps information about every block in the heap to stdout.
Return free heap size Returns the number of bytes available in the heap. Equivalent to the total_free_bytes member returned by multi_heap_get_heap_info(). Note that the heap may be fragmented, so the actual maximum size for a single malloc() may be lower. To know this size, see the largest_free_block member returned by multi_heap_get_heap_info().
Return the lifetime minimum free heap size Equivalent to the minimum_free_bytes member returned by multi_heap_get_info(). Returns the lifetime "low watermark" of possible values returned from multi_free_heap_size(), for the specified heap.
Perform an aligned allocation from the provided offset
Reset the minimum_free_bytes value (setting it to free_bytes) and return the former value
Set the value of minimum_free_bytes to new_minimum_free_bytes_value or keep the current value of minimum_free_bytes if it is smaller than new_minimum_free_bytes_value
Call the tlsf_walk_pool function of the heap given as parameter with the walker function passed as parameter
allocate a chunk of memory with specific alignment
free() a buffer aligned in a given heap.