XWOS API
4.0
XWOS C/C++ API参考手册
|
XWOS内存管理:内存切片分配器 更多...
#include <xwos/standard.h>
#include <xwos/lib/bclst.h>
#include <xwos/lib/lfq.h>
#include <xwos/mm/common.h>
结构体 | |
struct | xwmm_memslice |
内存切片分配器 更多... | |
函数 | |
xwer_t | xwmm_memslice_init (struct xwmm_memslice *msa, xwptr_t origin, xwsz_t total_size, xwsz_t card_size, const char *name, ctor_f ctor, dtor_f dtor) |
XWMM API:静态方式初始化内存切片分配器 | |
xwer_t | xwmm_memslice_alloc (struct xwmm_memslice *msa, void **membuf) |
XWMM API:申请内存切片 | |
xwer_t | xwmm_memslice_free (struct xwmm_memslice *msa, void *mem) |
XWMM API:释放内存切片 | |
XWOS内存管理:内存切片分配器
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
在文件 memslice.h 中定义.