Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "modules/tlsf/tlsf_malloc_arch.h"
Go to the source code of this file.
Data Structures | |
struct | tlsf_stat_t |
Typedefs | |
typedef struct _tlsf_memory_heap_t | tlsf_memory_heap_t |
Functions | |
void | tlsf_init_heaps (void) |
void * | tlsf_malloc_r (tlsf_memory_heap_t *heap, size_t bytes) |
void * | tlsf_memalign_r (tlsf_memory_heap_t *heap, size_t align, size_t bytes) |
void * | tlsf_realloc_r (tlsf_memory_heap_t *heap, void *ptr, size_t size) |
void | tlsf_free_r (tlsf_memory_heap_t *heap, void *ptr) |
void | tlsf_stat_r (tlsf_memory_heap_t *heap, struct tlsf_stat_t *stat) |
void * | tlsf_get_heap_addr (const tlsf_memory_heap_t *heap) |
int | tlsf_check_r (tlsf_memory_heap_t *heap) |
Dynamic memory allocation based on TLSF library. Similar to malloc with allocation time in O(1).
Generic arch independant API
Definition in file tlsf_malloc.h.
struct tlsf_stat_t |
Definition at line 55 of file tlsf_malloc.h.
Data Fields | ||
---|---|---|
size_t | mfree | free memory available |
size_t | mused | used memory |
typedef struct _tlsf_memory_heap_t tlsf_memory_heap_t |
Definition at line 40 of file tlsf_malloc.h.
int tlsf_check_r | ( | tlsf_memory_heap_t * | heap | ) |
Definition at line 137 of file tlsf_malloc_arch.c.
References _tlsf_memory_heap_t::mtx, and _tlsf_memory_heap_t::tlsf.
void tlsf_free_r | ( | tlsf_memory_heap_t * | heap, |
void * | ptr | ||
) |
Definition at line 119 of file tlsf_malloc_arch.c.
References _tlsf_memory_heap_t::mtx, and _tlsf_memory_heap_t::tlsf.
Referenced by msgqueue_send_timeout().
void* tlsf_get_heap_addr | ( | const tlsf_memory_heap_t * | heap | ) |
Definition at line 90 of file tlsf_malloc_arch.c.
References _tlsf_memory_heap_t::tlsf.
Referenced by msgqueue_pop_timeout(), and msgqueue_send_timeout().
void tlsf_init_heaps | ( | void | ) |
Definition at line 74 of file tlsf_malloc_arch.c.
References error_cb, HEAP_CCM, HEAP_CCM_SIZE, _tlsf_memory_heap_t::mtx, and _tlsf_memory_heap_t::tlsf.
void* tlsf_malloc_r | ( | tlsf_memory_heap_t * | heap, |
size_t | bytes | ||
) |
Definition at line 95 of file tlsf_malloc_arch.c.
References _tlsf_memory_heap_t::mtx, and _tlsf_memory_heap_t::tlsf.
Referenced by msgqueue_copy_send_timeout().
void* tlsf_memalign_r | ( | tlsf_memory_heap_t * | heap, |
size_t | align, | ||
size_t | bytes | ||
) |
Definition at line 103 of file tlsf_malloc_arch.c.
References _tlsf_memory_heap_t::mtx, and _tlsf_memory_heap_t::tlsf.
void* tlsf_realloc_r | ( | tlsf_memory_heap_t * | heap, |
void * | ptr, | ||
size_t | size | ||
) |
Definition at line 111 of file tlsf_malloc_arch.c.
References _tlsf_memory_heap_t::mtx, and _tlsf_memory_heap_t::tlsf.
void tlsf_stat_r | ( | tlsf_memory_heap_t * | heap, |
struct tlsf_stat_t * | stat | ||
) |
Definition at line 127 of file tlsf_malloc_arch.c.
References tlsf_stat_t::mfree, _tlsf_memory_heap_t::mtx, tlsf_stat_t::mused, stat_tlsf_walker(), and _tlsf_memory_heap_t::tlsf.