TuyaOS
函数
tkl_memory.h 文件参考

Common process - adapter the semaphore api provide by OS 更多...

#include "tuya_cloud_types.h"
tkl_memory.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

函数

VOID_T * tkl_system_calloc (size_t nitems, size_t size)
 Allocate and clear the memory 更多...
 
VOID_T tkl_system_free (VOID_T *ptr)
 Free memory of system 更多...
 
INT_T tkl_system_get_free_heap_size (VOID_T)
 Get system free heap size 更多...
 
VOID_T * tkl_system_malloc (SIZE_T size)
 Alloc memory of system 更多...
 
VOID_T * tkl_system_realloc (VOID_T *ptr, size_t size)
 Re-allocate the memory 更多...
 

详细描述

Common process - adapter the semaphore api provide by OS

版本
0.1
日期
2020-11-09

函数说明

◆ tkl_system_calloc()

VOID_T * tkl_system_calloc ( size_t  nitems,
size_t  size 
)

Allocate and clear the memory

参数
[in]nitemsthe numbers of memory block
[in]sizethe size of the memory block
返回
the memory address calloced

◆ tkl_system_free()

VOID_T tkl_system_free ( VOID_T *  ptr)

Free memory of system

参数
[in]ptrmemory point
注解
This API is used to free memory of system.
返回
VOID_T

◆ tkl_system_get_free_heap_size()

INT_T tkl_system_get_free_heap_size ( VOID_T  )

Get system free heap size

参数
none
返回
heap size

◆ tkl_system_malloc()

VOID_T * tkl_system_malloc ( SIZE_T  size)

Alloc memory of system

参数
[in]sizememory size
注解
This API is used to alloc memory of system.
返回
the memory address malloced

◆ tkl_system_realloc()

VOID_T * tkl_system_realloc ( VOID_T *  ptr,
size_t  size 
)

Re-allocate the memory

参数
[in]nitemssource memory address
[in]sizethe size after re-allocate
返回
VOID_T