XFusion API v1.3.0
|
提供给外界调用的malloc API 更多...
结构体 | |
struct | _heap_t |
类型定义 | |
typedef struct _heap_t | heap_t |
函数 | |
static void * | _xf_malloc (unsigned int size) |
static void | _xf_free (void *pv) |
static unsigned int | _xf_heap_get_free_size (void) |
static unsigned int | _xf_heap_get_min_ever_free_size (void) |
int | xf_heap_api_redirect (const xf_heap_api_t *api) |
重新定义内存管理接口 | |
int | xf_heap_init (const xf_heap_region_t *const regions) |
内存初始化。 | |
int | xf_heap_uninit (void) |
内存反初始化。 | |
void * | xf_malloc (unsigned int size) |
申请内存。 | |
void | xf_free (void *pv) |
释放内存。 | |
unsigned int | xf_heap_get_free_size (void) |
获取内存总空闲大小。 | |
unsigned int | xf_heap_get_min_ever_free_size (void) |
获取曾经最小的空闲内存块。 | |
变量 | |
static heap_t | s_heap |
static const xf_heap_api_t * | s_heap_api = {0} |
static const xf_heap_api_t | _heap_api |
提供给外界调用的malloc API
在文件 xf_heap.c 中定义.
int xf_heap_api_redirect | ( | const xf_heap_api_t * | api | ) |
int xf_heap_init | ( | const xf_heap_region_t *const | regions | ) |
|
static |
|
static |
|
static |