WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
Slab
Slab 的协作图:

宏定义

#define SLAB_MEM_ALLOCATOR_SIZE   512U
 

函数

void LOS_SlabSizeCfg (UINT32 *cfg, UINT32 cnt)
 configure slab size.
 

详细描述

宏定义说明

◆ SLAB_MEM_ALLOCATOR_SIZE

#define SLAB_MEM_ALLOCATOR_SIZE   512U

total size of each slab class.

函数说明

◆ LOS_SlabSizeCfg()

void LOS_SlabSizeCfg ( UINT32 cfg,
UINT32  cnt 
)
extern

configure slab size.

slab bucket size type.

Description:
This API is used to configure slab size.
注意
  • The function should be called before function LOS_MemInit if necessary.
  • The function takes effect when LOSCFG_KERNEL_MEM_SLAB_AUTO_EXPANSION_MODE is NO.
参数
cfg[IN] the pointer to slab size config table. Note that the pointer cannot be null.
cnt[IN] slab class size, must be equal to SLAB_MEM_COUNT(the number of slab class).
返回值
None.
Dependency:
  • los_slab.h: the header file that contains the API declaration.
自从
Huawei LiteOS V200R003C00