lv_tlsf.h

Typedefs

typedef void *lv_tlsf_t
typedef void *lv_pool_t
typedef void (*lv_tlsf_walker)(void *ptr, size_t size, int used, void *user)

Functions

lv_tlsf_t lv_tlsf_create(void *mem)
lv_tlsf_t lv_tlsf_create_with_pool(void *mem, size_t bytes)
void lv_tlsf_destroy(lv_tlsf_t tlsf)
lv_pool_t lv_tlsf_get_pool(lv_tlsf_t tlsf)
lv_pool_t lv_tlsf_add_pool(lv_tlsf_t tlsf, void *mem, size_t bytes)
void lv_tlsf_remove_pool(lv_tlsf_t tlsf, lv_pool_t pool)
void *lv_tlsf_malloc(lv_tlsf_t tlsf, size_t bytes)
void *lv_tlsf_memalign(lv_tlsf_t tlsf, size_t align, size_t bytes)
void *lv_tlsf_realloc(lv_tlsf_t tlsf, void *ptr, size_t size)
size_t lv_tlsf_free(lv_tlsf_t tlsf, const void *ptr)
size_t lv_tlsf_block_size(void *ptr)
size_t lv_tlsf_size(void)
size_t lv_tlsf_align_size(void)
size_t lv_tlsf_block_size_min(void)
size_t lv_tlsf_block_size_max(void)
size_t lv_tlsf_pool_overhead(void)
size_t lv_tlsf_alloc_overhead(void)
void lv_tlsf_walk_pool(lv_pool_t pool, lv_tlsf_walker walker, void *user)
int lv_tlsf_check(lv_tlsf_t tlsf)
int lv_tlsf_check_pool(lv_pool_t pool)
struct lv_tlsf_state_t

Public Members

lv_tlsf_t tlsf
size_t cur_used
size_t max_used
lv_ll_t pool_ll