VSF Documented
|
#include "service/vsf_service_cfg.h"
#include "vsf_heap.h"
#include "utilities/vsf_utilities.h"
#include "kernel/vsf_kernel.h"
#include "../pool/vsf_pool.h"
#include "../trace/vsf_trace.h"
Data Structures | |
struct | vsf_heap_mcb_t |
Macros | |
#define | __VSF_HEAP_CLASS_IMPLEMENT |
#define | VSF_HEAP_CFG_MCB_ALIGN_BIT 2 |
#define | VSF_HEAP_CFG_MCB_ALIGN (1 << VSF_HEAP_CFG_MCB_ALIGN_BIT) |
#define | VSF_HEAP_CFG_MCB_OFFSET_TYPE uint16_t |
#define | VSF_HEAP_MCB_MAGIC 0x1ea01ea0 |
#define | VSF_HEAP_CFG_FREELIST_NUM 1 |
#define | VSF_HEAP_CFG_PROTECT_LEVEL interrupt |
#define | __vsf_heap_protect vsf_protect(VSF_HEAP_CFG_PROTECT_LEVEL) |
#define | __vsf_heap_unprotect vsf_unprotect(VSF_HEAP_CFG_PROTECT_LEVEL) |
#define | __vsf_heap_mcb_get_size(__mcb) ((__mcb)->linear.next << VSF_HEAP_CFG_MCB_ALIGN_BIT) |
#define | __vsf_heap_mcb_get_prev_size(__mcb) ((__mcb)->linear.prev << VSF_HEAP_CFG_MCB_ALIGN_BIT) |
Typedefs | |
typedef struct vsf_heap_mcb_t | vsf_heap_mcb_t |
Variables | |
const i_heap_t | VSF_HEAP |
#define __VSF_HEAP_CLASS_IMPLEMENT |
#define VSF_HEAP_CFG_MCB_ALIGN_BIT 2 |
#define VSF_HEAP_CFG_MCB_ALIGN (1 << VSF_HEAP_CFG_MCB_ALIGN_BIT) |
#define VSF_HEAP_CFG_MCB_OFFSET_TYPE uint16_t |
#define VSF_HEAP_MCB_MAGIC 0x1ea01ea0 |
#define VSF_HEAP_CFG_FREELIST_NUM 1 |
#define VSF_HEAP_CFG_PROTECT_LEVEL interrupt |
#define __vsf_heap_protect vsf_protect(VSF_HEAP_CFG_PROTECT_LEVEL) |
#define __vsf_heap_unprotect vsf_unprotect(VSF_HEAP_CFG_PROTECT_LEVEL) |
#define __vsf_heap_mcb_get_size | ( | __mcb | ) | ((__mcb)->linear.next << VSF_HEAP_CFG_MCB_ALIGN_BIT) |
#define __vsf_heap_mcb_get_prev_size | ( | __mcb | ) | ((__mcb)->linear.prev << VSF_HEAP_CFG_MCB_ALIGN_BIT) |
typedef struct vsf_heap_mcb_t vsf_heap_mcb_t |
|
extern |
void __vsf_heap_add_buffer | ( | vsf_heap_t * | heap, |
uint8_t * | buffer, | ||
uint_fast32_t | size | ||
) |
void * __vsf_heap_malloc_aligned | ( | vsf_heap_t * | heap, |
uint_fast32_t | size, | ||
uint_fast32_t | alignment | ||
) |
void * __vsf_heap_realloc_aligned | ( | vsf_heap_t * | heap, |
void * | buffer, | ||
uint_fast32_t | size, | ||
uint_fast32_t | alignment | ||
) |
uint_fast32_t __vsf_heap_size | ( | vsf_heap_t * | heap, |
void * | buffer | ||
) |
void __vsf_heap_free | ( | vsf_heap_t * | heap, |
void * | buffer | ||
) |
void __vsf_heap_statistics | ( | vsf_heap_t * | heap, |
vsf_heap_statistics_t * | statistics | ||
) |
void vsf_heap_statistics | ( | vsf_heap_statistics_t * | statistics | ) |
void * vsf_heap_malloc_aligned_imp | ( | uint_fast32_t | size, |
uint_fast32_t | alignment | ||
) |
void * vsf_heap_malloc_imp | ( | uint_fast32_t | size | ) |
void * vsf_heap_realloc_aligned_imp | ( | void * | buffer, |
uint_fast32_t | size, | ||
uint_fast32_t | alignment | ||
) |
void * vsf_heap_realloc_imp | ( | void * | buffer, |
uint_fast32_t | size | ||
) |
uint_fast32_t vsf_heap_size | ( | uint8_t * | buffer | ) |
void vsf_heap_free_imp | ( | void * | buffer | ) |
void * vsf_heap_calloc | ( | uint_fast32_t | n, |
uint_fast32_t | size | ||
) |
char * vsf_heap_strdup | ( | const char * | str | ) |
const i_heap_t VSF_HEAP |