Lines Matching full:sys_heap
57 struct sys_heap { struct
79 * @brief Get the runtime statistics of a sys_heap argument
81 * @param heap Pointer to specified sys_heap
85 int sys_heap_runtime_stats_get(struct sys_heap *heap,
94 * @param heap Pointer to sys_heap
97 int sys_heap_runtime_stats_reset_max(struct sys_heap *heap);
101 /** @brief Initialize sys_heap
103 * Initializes a sys_heap struct to manage the specified memory.
109 void sys_heap_init(struct sys_heap *heap, void *mem, size_t bytes);
111 /** @brief Allocate memory from a sys_heap
120 * @note The sys_heap implementation is not internally synchronized.
121 * No two sys_heap functions should operate on the same heap at the
128 void *sys_heap_alloc(struct sys_heap *heap, size_t bytes);
130 /** @brief Allocate aligned memory from a sys_heap
143 void *sys_heap_aligned_alloc(struct sys_heap *heap, size_t align, size_t bytes);
145 /** @brief Free memory into a sys_heap
151 * @note The sys_heap implementation is not internally synchronized.
152 * No two sys_heap functions should operate on the same heap at the
158 void sys_heap_free(struct sys_heap *heap, void *mem);
178 void *sys_heap_aligned_realloc(struct sys_heap *heap, void *ptr,
198 size_t sys_heap_usable_size(struct sys_heap *heap, void *mem);
202 * Validates the internal integrity of a sys_heap. Intended for unit
214 bool sys_heap_validate(struct sys_heap *heap);
216 static inline bool sys_heap_validate(struct sys_heap *heap) in sys_heap_validate()
223 /** @brief sys_heap stress test rig
268 void sys_heap_print_info(struct sys_heap *heap, bool dump_chunks);