.. _program_listing_file__tmp_ws_src_tlsf_tlsf_include_tlsf_tlsf.h: Program Listing for File tlsf.h =============================== |exhale_lsh| :ref:`Return to documentation for file ` (``/tmp/ws/src/tlsf/tlsf/include/tlsf/tlsf.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp /* * Two Levels Segregate Fit memory allocator (TLSF) * Version 2.4.6 * * Written by Miguel Masmano Tello * * Thanks to Ismael Ripoll for his suggestions and reviews * * Copyright (C) 2008, 2007, 2006, 2005, 2004 * * This code is released using a dual license strategy: GPL/LGPL * You can choose the licence that better fits your requirements. * * Released under the terms of the GNU General Public License Version 2.0 * Released under the terms of the GNU Lesser General Public License Version 2.1 * */ #ifdef __cplusplus extern "C" { #endif #ifndef _TLSF_H_ #define _TLSF_H_ #include extern size_t init_memory_pool(size_t, void *); extern size_t get_used_size(void *); extern size_t get_max_size(void *); extern void destroy_memory_pool(void *); extern size_t add_new_area(void *, size_t, void *); extern void *malloc_ex(size_t, void *); extern void free_ex(void *, void *); extern void *realloc_ex(void *, size_t, void *); extern void *calloc_ex(size_t, size_t, void *); extern void *tlsf_malloc(size_t size); extern void tlsf_free(void *ptr); extern void *tlsf_realloc(void *ptr, size_t size); extern void *tlsf_calloc(size_t nelem, size_t elem_size); #endif #ifdef __cplusplus } #endif