7 #ifndef ZRTOS_MALLOC_LIMIT_H 8 #define ZRTOS_MALLOC_LIMIT_H 15 #ifdef ZRTOS_MALLOC__CFG_DISABLE_FREE 16 #error "ZRTOS_MALLOC__CFG_DISABLE_FREE not supported" 23 #define ZRTOS_MALLOC_LIMIT__INIT() {.length = 0} 33 ret = kmalloc(length);
void zrtos_malloc_limit__free(zrtos_malloc_limit_t *thiz, void *ptr)
size_t zrtos_malloc__get_length(void *ptr)
struct _zrtos_malloc_limit_t zrtos_malloc_limit_t
void * zrtos_malloc_limit__malloc(zrtos_malloc_limit_t *thiz, size_t length, size_t limit)