Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef _TLSF_H_
00020 #define _TLSF_H_
00021
00022 #include <sys/types.h>
00023
00024 extern size_t rtl_init_memory_pool(size_t, void *);
00025 extern size_t rtl_get_used_size(void *);
00026 extern size_t rtl_get_max_size(void *);
00027 extern void rtl_destroy_memory_pool(void *);
00028 extern size_t rtl_add_new_area(void *, size_t, void *);
00029 extern void *rtl_malloc_ex(size_t, void *);
00030 extern void rtl_free_ex(void *, void *);
00031 extern void *rtl_realloc_ex(void *, size_t, void *);
00032 extern void *rtl_calloc_ex(size_t, size_t, void *);
00033
00034 extern void *rtl_tlsf_malloc(size_t size);
00035 extern void rtl_tlsf_free(void *ptr);
00036 extern void *rtl_tlsf_realloc(void *ptr, size_t size);
00037 extern void *rtl_tlsf_calloc(size_t nelem, size_t elem_size);
00038
00039 #endif