更新日期: 2022/06/01 来源: https://gitee.com/weharmony/kernel_liteos_a_note
los_memory.h 文件参考

浏览源代码.

结构体

struct  LOS_MEM_POOL_STATUS
 

函数

UINT32 LOS_MemDeInit (VOID *pool)
 Deinitialize dynamic memory. 更多...
 
UINT32 LOS_MemPoolList (VOID)
 Print infomation about all pools. 更多...
 
UINT32 LOS_MemInit (VOID *pool, UINT32 size)
 Initialize dynamic memory. 更多...
 
VOID LOS_MemExpandEnable (VOID *pool)
 Enable memory pool to support dynamic expansion. 更多...
 
VOID * LOS_MemAlloc (VOID *pool, UINT32 size)
 Allocate dynamic memory. 更多...
 
UINT32 LOS_MemFree (VOID *pool, VOID *ptr)
 Free dynamic memory. 更多...
 
VOID * LOS_MemRealloc (VOID *pool, VOID *ptr, UINT32 size)
 Re-allocate a memory block. 更多...
 
VOID * LOS_MemAllocAlign (VOID *pool, UINT32 size, UINT32 boundary)
 Allocate aligned memory. 更多...
 
UINT32 LOS_MemPoolSizeGet (const VOID *pool)
 Get the size of memory pool's size. 更多...
 
UINT32 LOS_MemTotalUsedGet (VOID *pool)
 Get the size of memory totally used. 更多...
 
UINT32 LOS_MemInfoGet (VOID *pool, LOS_MEM_POOL_STATUS *poolStatus)
 Get the infomation of memory pool. 更多...
 
UINT32 LOS_MemFreeNodeShow (VOID *pool)
 Get the number of free node in every size. 更多...
 
UINT32 LOS_MemIntegrityCheck (const VOID *pool)
 Check the memory pool integrity. 更多...
 
voidboot_alloc_mem (size_t len)
 

变量

UINT8m_aucSysMem0
 异常交互动态内存池地址的起始地址,当不支持异常交互特性时,m_aucSysMem0等于m_aucSysMem1。 更多...
 
UINT8m_aucSysMem1
 系统动态内存池地址的起始地址 @note_thinking 能否不要用 0,1来命名核心变量 ??? 更多...
 

函数说明

◆ boot_alloc_mem()

void * boot_alloc_mem ( size_t  len)