tlsf.h
Go to the documentation of this file.
1 /*
2  * Two Levels Segregate Fit memory allocator (TLSF)
3  * Version 2.4.6
4  *
5  * Written by Miguel Masmano Tello <mimastel@doctor.upv.es>
6  *
7  * Thanks to Ismael Ripoll for his suggestions and reviews
8  *
9  * Copyright (C) 2008, 2007, 2006, 2005, 2004
10  *
11  * This code is released using a dual license strategy: GPL/LGPL
12  * You can choose the licence that better fits your requirements.
13  *
14  * Released under the terms of the GNU General Public License Version 2.0
15  * Released under the terms of the GNU Lesser General Public License Version 2.1
16  *
17  */
18 
19 #ifndef _TLSF_H_
20 #define _TLSF_H_
21 
22 #include <sys/types.h>
23 
24 extern size_t rtl_init_memory_pool(size_t, void *);
25 extern size_t rtl_get_used_size(void *);
26 extern size_t rtl_get_max_size(void *);
27 extern void rtl_destroy_memory_pool(void *);
28 extern size_t rtl_add_new_area(void *, size_t, void *);
29 extern void *rtl_malloc_ex(size_t, void *);
30 extern void rtl_free_ex(void *, void *);
31 extern void *rtl_realloc_ex(void *, size_t, void *);
32 extern void *rtl_calloc_ex(size_t, size_t, void *);
33 
34 extern void *rtl_tlsf_malloc(size_t size);
35 extern void rtl_tlsf_free(void *ptr);
36 extern void *rtl_tlsf_realloc(void *ptr, size_t size);
37 extern void *rtl_tlsf_calloc(size_t nelem, size_t elem_size);
38 
39 #endif
size_t rtl_add_new_area(void *, size_t, void *)
Definition: tlsf.c:511
void * rtl_malloc_ex(size_t, void *)
Definition: tlsf.c:706
void rtl_destroy_memory_pool(void *)
Definition: tlsf.c:620
void rtl_tlsf_free(void *ptr)
Definition: tlsf.c:660
void * rtl_tlsf_calloc(size_t nelem, size_t elem_size)
Definition: tlsf.c:692
void * rtl_realloc_ex(void *, size_t, void *)
Definition: tlsf.c:813
size_t rtl_init_memory_pool(size_t, void *)
Definition: tlsf.c:464
size_t rtl_get_max_size(void *)
void * rtl_tlsf_realloc(void *ptr, size_t size)
Definition: tlsf.c:672
void * rtl_tlsf_malloc(size_t size)
Definition: tlsf.c:632
void * rtl_calloc_ex(size_t, size_t, void *)
Definition: tlsf.c:907
void rtl_free_ex(void *, void *)
Definition: tlsf.c:767
size_t rtl_get_used_size(void *)


ocl
Author(s): OCL Development Team
autogenerated on Mon Mar 23 2020 04:47:19