RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
|
宏定义 | |
#define | DBG_TAG "kernel.mem" |
#define | DBG_LVL DBG_INFO |
#define | MIN_SIZE (sizeof(rt_uintptr_t) + sizeof(rt_size_t) + sizeof(rt_size_t)) |
#define | MEM_MASK ((~(rt_size_t)0) - 1) |
#define | MEM_USED(_mem) |
#define | MEM_FREED(_mem) |
#define | MEM_ISUSED(_mem) |
#define | MEM_POOL(_mem) |
#define | MEM_SIZE(_heap, _mem) |
#define | MIN_SIZE_ALIGNED RT_ALIGN(MIN_SIZE, RT_ALIGN_SIZE) |
#define | SIZEOF_STRUCT_MEM RT_ALIGN(sizeof(struct rt_small_mem_item), RT_ALIGN_SIZE) |
函数 | |
rt_smem_t | rt_smem_init (const char *name, void *begin_addr, rt_size_t size) |
RTM_EXPORT (rt_smem_init) | |
rt_err_t | rt_smem_detach (rt_smem_t m) |
RTM_EXPORT (rt_smem_detach) | |
void * | rt_smem_alloc (rt_smem_t m, rt_size_t size) |
RTM_EXPORT (rt_smem_alloc) | |
void * | rt_smem_realloc (rt_smem_t m, void *rmem, rt_size_t newsize) |
RTM_EXPORT (rt_smem_realloc) | |
void | rt_smem_free (void *rmem) |
RTM_EXPORT (rt_smem_free) | |
#define MIN_SIZE (sizeof(rt_uintptr_t) + sizeof(rt_size_t) + sizeof(rt_size_t)) |
#define MEM_USED | ( | _mem | ) |
#define MEM_FREED | ( | _mem | ) |
#define MEM_ISUSED | ( | _mem | ) |
#define MEM_POOL | ( | _mem | ) |
#define MEM_SIZE | ( | _heap, | |
_mem ) |
#define SIZEOF_STRUCT_MEM RT_ALIGN(sizeof(struct rt_small_mem_item), RT_ALIGN_SIZE) |
RTM_EXPORT | ( | rt_smem_init | ) |
RTM_EXPORT | ( | rt_smem_detach | ) |