结构体 | |
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. 更多... | |
变量 | |
UINT8 * | m_aucSysMem0 |
异常交互动态内存池地址的起始地址,当不支持异常交互特性时,m_aucSysMem0等于m_aucSysMem1。 更多... | |
UINT8 * | m_aucSysMem1 |
系统动态内存池地址的起始地址 @note_thinking 能否不要用 0,1来命名核心变量 ??? 更多... | |
VOID * LOS_MemAlloc | ( | VOID * | pool, |
UINT32 | size | ||
) |
Allocate dynamic memory.
pool | [IN] Pointer to the memory pool that contains the memory block to be allocated. |
size | [IN] Size of the memory block to be allocated (unit: byte). |
#NULL | The memory fails to be allocated. |
#VOID* | The memory is successfully allocated with the starting address of the allocated memory block returned. |
Allocate dynamic memory.
在文件 los_memory.c 第 1123 行定义.
Allocate aligned memory.
pool | [IN] Pointer to the memory pool that contains the memory blocks to be allocated. |
size | [IN] Size of the memory to be allocated. |
boundary | [IN] Boundary on which the memory is aligned. |
#NULL | The memory fails to be allocated. |
#VOID* | The memory is successfully allocated with the starting address of the allocated memory returned. |
Allocate aligned memory.
在文件 los_memory.c 第 1150 行定义.
UINT32 LOS_MemDeInit | ( | VOID * | pool | ) |
Deinitialize dynamic memory.
pool | [IN] Starting address of memory. |
#OS_ERROR | The dynamic memory fails to be deinitialized. |
#LOS_OK | The dynamic memory is successfully deinitialized. |
Deinitialize dynamic memory.
在文件 los_memory.c 第 1045 行定义.
VOID LOS_MemExpandEnable | ( | VOID * | pool | ) |
Enable memory pool to support dynamic expansion.
pool | [IN] Starting address of memory. |
node. |
在文件 los_memory.c 第 500 行定义.
UINT32 LOS_MemFree | ( | VOID * | pool, |
VOID * | ptr | ||
) |
Free dynamic memory.
pool | [IN] Pointer to the memory pool that contains the dynamic memory block to be freed. |
ptr | [IN] Starting address of the memory block to be freed. |
#LOS_NOK | The memory block fails to be freed because the starting address of the memory block is invalid, or the memory overwriting occurs. |
#LOS_OK | The memory block is successfully freed. |
Free dynamic memory.
在文件 los_memory.c 第 1369 行定义.
UINT32 LOS_MemFreeNodeShow | ( | VOID * | pool | ) |
Get the number of free node in every size.
pool | [IN] A pointer pointed to the memory pool. |
#LOS_NOK | The incoming parameter pool is NULL. |
UINT32 | The address of the last used node that casts to UINT32. |
Get the number of free node in every size.
在文件 los_memory.c 第 2048 行定义.
UINT32 LOS_MemInfoGet | ( | VOID * | pool, |
LOS_MEM_POOL_STATUS * | poolStatus | ||
) |
Get the infomation of memory pool.
pool | [IN] A pointer pointed to the memory pool. |
poolStatus | [IN] A pointer for storage the pool status |
#LOS_NOK | The incoming parameter pool is NULL or invalid. |
#LOS_OK | Success to get memory infomation. |
Get the infomation of memory pool.
pool | |
poolStatus |
在文件 los_memory.c 第 1965 行定义.
Initialize dynamic memory.
pool | [IN] Starting address of memory. |
size | [IN] Memory size. |
#OS_ERROR | The dynamic memory fails to be initialized. |
#LOS_OK | The dynamic memory is successfully initialized. |
Initialize dynamic memory.
pool | |
size |
在文件 los_memory.c 第 1021 行定义.
UINT32 LOS_MemIntegrityCheck | ( | const VOID * | pool | ) |
Check the memory pool integrity.
pool | [IN] A pointer pointed to the memory pool. |
#LOS_NOK | The memory pool (pool) is impaired. |
#LOS_OK | The memory pool (pool) is integrated. |
Check the memory pool integrity.
在文件 los_memory.c 第 1903 行定义.
UINT32 LOS_MemPoolList | ( | VOID | ) |
Print infomation about all pools.
UINT32 | The pool number. |
Print infomation about all pools.
在文件 los_memory.c 第 1061 行定义.
UINT32 LOS_MemPoolSizeGet | ( | const VOID * | pool | ) |
Get the size of memory pool's size.
pool | [IN] A pointer pointed to the memory pool. |
#LOS_NOK | The incoming parameter pool is NULL. |
UINT32 | The size of the memory pool. |
Get the size of memory pool's size.
在文件 los_memory.c 第 1603 行定义.
VOID * LOS_MemRealloc | ( | VOID * | pool, |
VOID * | ptr, | ||
UINT32 | size | ||
) |
Re-allocate a memory block.
pool | [IN] Pointer to the memory pool that contains the original and new memory blocks. |
ptr | [IN] Address of the original memory block. |
size | [IN] Size of the new memory block. |
#NULL | The memory fails to be re-allocated. |
#VOID* | The memory is successfully re-allocated with the starting address of the new memory block returned. |
Re-allocate a memory block.
在文件 los_memory.c 第 1510 行定义.
UINT32 LOS_MemTotalUsedGet | ( | VOID * | pool | ) |
Get the size of memory totally used.
pool | [IN] A pointer pointed to the memory pool. |
#LOS_NOK | The incoming parameter pool is NULL. |
UINT32 | The size of the memory pool used. |
Get the size of memory totally used.
在文件 los_memory.c 第 1628 行定义.
|
extern |
异常交互动态内存池地址的起始地址,当不支持异常交互特性时,m_aucSysMem0等于m_aucSysMem1。
The start address of exc interaction dynamic memory pool address, when the exc interaction feature not support, m_aucSysMem0 equals to m_aucSysMem1.
在文件 los_memory.c 第 107 行定义.
|
extern |
系统动态内存池地址的起始地址 @note_thinking 能否不要用 0,1来命名核心变量 ???
The start address of system dynamic memory pool address.
在文件 los_memory.c 第 108 行定义.