tlsf.h
Go to the documentation of this file.
00001 /*
00002  * Two Levels Segregate Fit memory allocator (TLSF)
00003  * Version 2.4.6
00004  *
00005  * Written by Miguel Masmano Tello <mimastel@doctor.upv.es>
00006  *
00007  * Thanks to Ismael Ripoll for his suggestions and reviews
00008  *
00009  * Copyright (C) 2008, 2007, 2006, 2005, 2004
00010  *
00011  * This code is released using a dual license strategy: GPL/LGPL
00012  * You can choose the licence that better fits your requirements.
00013  *
00014  * Released under the terms of the GNU General Public License Version 2.0
00015  * Released under the terms of the GNU Lesser General Public License Version 2.1
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


ocl
Author(s): OCL Development Team
autogenerated on Sun Nov 27 2016 03:45:31