XWOS API
4.0
XWOS C/C++ API参考手册
|
XWOS内存管理:内存池:页分配器 更多...
#include <xwos/standard.h>
#include <xwos/lib/bclst.h>
#include <xwos/lib/rbtree.h>
#include <xwos/osal/lock/seqlock.h>
#include <xwos/mm/common.h>
#include <xwos/mm/mempool/i_allocator.h>
结构体 | |
struct | xwmm_mempool_page |
内存页 更多... | |
struct | xwmm_mempool_page_odrbtree |
阶红黑树 更多... | |
struct | xwmm_mempool_page_allocator |
页分配器 更多... | |
宏定义 | |
#define | XWMM_MEMPOOL_PAGE_ORDER_CMB (XWSQ_MAX) |
#define | XWMM_MEMPOOL_PAGE_MAPPING_FREE (0U) |
#define | XWMM_MEMPOOL_PAGE_MAPPING_INVAILD (XWPTR_MAX) |
函数 | |
xwer_t | xwmm_mempool_page_find (struct xwmm_mempool_page_allocator *pa, void *mem, struct xwmm_mempool_page **pgbuf) |
依据内存地址查找页 | |
xwer_t | xwmm_mempool_page_allocator_init (struct xwmm_mempool_page_allocator *pa, const char *name, xwptr_t origin, xwsz_t size, xwsz_t pgsize, struct xwmm_mempool_page_odrbtree *odrbtree, struct xwmm_mempool_page *pgarray) |
XWMM API:初始化页分配器 | |
xwer_t | xwmm_mempool_page_allocate (struct xwmm_mempool_page_allocator *pa, xwsq_t order, struct xwmm_mempool_page **pgbuf) |
XWMM API:申请一页内存 | |
xwer_t | xwmm_mempool_page_free (struct xwmm_mempool_page_allocator *pa, struct xwmm_mempool_page *pg) |
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/.
在文件 page.h 中定义.