Home
last modified time | relevance | path

Searched refs:k_heap (Results 1 – 24 of 24) sorted by relevance

/Zephyr-Core-2.7.6/kernel/
Dkheap.c13 void k_heap_init(struct k_heap *h, void *mem, size_t bytes) in k_heap_init()
18 SYS_PORT_TRACING_OBJ_INIT(k_heap, h); in k_heap_init()
24 STRUCT_SECTION_FOREACH(k_heap, h) { in statics_init()
64 void *k_heap_aligned_alloc(struct k_heap *h, size_t align, size_t bytes, in k_heap_aligned_alloc()
71 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_heap, aligned_alloc, h, timeout); in k_heap_aligned_alloc()
89 SYS_PORT_TRACING_OBJ_FUNC_BLOCKING(k_heap, aligned_alloc, h, timeout); in k_heap_aligned_alloc()
101 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_heap, aligned_alloc, h, timeout, ret); in k_heap_aligned_alloc()
107 void *k_heap_alloc(struct k_heap *h, size_t bytes, k_timeout_t timeout) in k_heap_alloc()
109 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_heap, alloc, h, timeout); in k_heap_alloc()
113 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_heap, alloc, h, timeout, ret); in k_heap_alloc()
[all …]
Dmempool.c12 static void *z_heap_aligned_alloc(struct k_heap *heap, size_t align, size_t size) in z_heap_aligned_alloc()
15 struct k_heap **heap_ref; in z_heap_aligned_alloc()
45 struct k_heap **heap_ref; in k_free()
127 struct k_heap *heap; in z_thread_aligned_alloc()
/Zephyr-Core-2.7.6/tests/kernel/mem_protect/mem_protect/src/
Dinherit.c126 struct k_heap *z_impl_ret_resource_pool_ptr(void) in z_impl_ret_resource_pool_ptr()
131 static inline struct k_heap *z_vrfy_ret_resource_pool_ptr(void) in z_vrfy_ret_resource_pool_ptr()
136 struct k_heap *child_heap_mem_ptr;
137 struct k_heap *parent_heap_mem_ptr;
Dmem_protect.h146 __syscall struct k_heap *ret_resource_pool_ptr(void);
/Zephyr-Core-2.7.6/subsys/tracing/test/
Dtracing_string_format_test.c305 void sys_trace_k_heap_init(struct k_heap *h, void *mem, size_t bytes) in sys_trace_k_heap_init()
310 void sys_trace_k_heap_aligned_alloc_enter(struct k_heap *h, size_t bytes, k_timeout_t timeout) in sys_trace_k_heap_aligned_alloc_enter()
315 void sys_trace_k_heap_alloc_enter(struct k_heap *h, size_t bytes, k_timeout_t timeout) in sys_trace_k_heap_alloc_enter()
320 void sys_trace_k_heap_free(struct k_heap *h, void *mem) in sys_trace_k_heap_free()
325 void sys_trace_k_heap_aligned_alloc_blocking(struct k_heap *h, size_t bytes, k_timeout_t timeout) in sys_trace_k_heap_aligned_alloc_blocking()
330 void sys_trace_k_heap_alloc_exit(struct k_heap *h, size_t bytes, k_timeout_t timeout, void *ret) in sys_trace_k_heap_alloc_exit()
335 void sys_trace_k_heap_aligned_alloc_exit(struct k_heap *h, size_t bytes, in sys_trace_k_heap_aligned_alloc_exit()
Dtracing_test.h454 void sys_trace_k_thread_heap_assign(struct k_thread *thread, struct k_heap *heap);
630 void sys_trace_k_heap_init(struct k_heap *h, void *mem, size_t bytes);
631 void sys_trace_k_heap_alloc_enter(struct k_heap *h, size_t bytes, k_timeout_t timeout);
632 void sys_trace_k_heap_alloc_exit(struct k_heap *h, size_t bytes, k_timeout_t timeout, void *ret);
633 void sys_trace_k_heap_aligned_alloc_enter(struct k_heap *h, size_t bytes, k_timeout_t timeout);
634 void sys_trace_k_heap_aligned_alloc_blocking(struct k_heap *h, size_t bytes, k_timeout_t timeout);
635 void sys_trace_k_heap_aligned_alloc_exit(struct k_heap *h, size_t bytes, k_timeout_t timeout,
637 void sys_trace_k_heap_free(struct k_heap *h, void *mem);
638 void sys_trace_k_heap_sys_k_aligned_alloc_enter(struct k_heap *h, size_t align, size_t size);
639 void sys_trace_k_heap_sys_k_aligned_alloc_exit(struct k_heap *h, size_t align, size_t size,
[all …]
/Zephyr-Core-2.7.6/include/kernel/
Dmempool_heap.h18 struct k_heap *heap;
Dthread.h274 struct k_heap *resource_pool;
/Zephyr-Core-2.7.6/tests/kernel/queue/src/
Dtest_queue.h42 extern struct k_heap test_pool;
/Zephyr-Core-2.7.6/tests/kernel/pipe/pipe_api/src/
Dmain.c57 extern struct k_heap test_pool;
/Zephyr-Core-2.7.6/doc/reference/kernel/memory/
Dheap.rst16 :c:macro:`K_HEAP_DEFINE` macro. This creates a static :c:struct:`k_heap` variable
49 The underlying implementation of the :c:struct:`k_heap`
55 or more complicated. Unlike ``k_heap``, all calls to any ``sys_heap``
/Zephyr-Core-2.7.6/include/
Dkernel.h344 struct k_heap *heap) in k_thread_heap_assign()
4951 struct k_heap { struct
4970 void k_heap_init(struct k_heap *h, void *mem, size_t bytes);
4991 void *k_heap_aligned_alloc(struct k_heap *h, size_t align, size_t bytes,
5014 void *k_heap_alloc(struct k_heap *h, size_t bytes,
5027 void k_heap_free(struct k_heap *h, void *mem);
5054 STRUCT_SECTION_ITERABLE(k_heap, name) = { \
/Zephyr-Core-2.7.6/include/linker/
Dcommon-ram.ld81 ITERABLE_SECTION_RAM_GC_ALLOWED(k_heap, 4)
/Zephyr-Core-2.7.6/cmake/linker_script/common/
Dcommon-ram.cmake52 zephyr_iterable_section(NAME k_heap GROUP DATA_REGION ${XIP_ALIGN_WITH_INPUT} SUBALIGN 4)
/Zephyr-Core-2.7.6/subsys/net/
Dbuf.c99 struct k_heap *pool = buf_pool->alloc->alloc_data; in mem_pool_data_alloc()
119 struct k_heap *pool = buf_pool->alloc->alloc_data; in mem_pool_data_unref()
/Zephyr-Core-2.7.6/subsys/tracing/ctf/
Dtracing_ctf.h357 struct k_heap *heap);
/Zephyr-Core-2.7.6/soc/xtensa/esp32s2/
Dlinker.ld154 Z_LINK_ITERABLE_GC_ALLOWED(k_heap);
/Zephyr-Core-2.7.6/soc/xtensa/esp32/
Dlinker.ld161 Z_LINK_ITERABLE_GC_ALLOWED(k_heap);
/Zephyr-Core-2.7.6/doc/reference/usermode/
Dmemory_domain.rst127 a k_heap to draw these allocations from for the target thread.
/Zephyr-Core-2.7.6/doc/releases/
Drelease-notes-2.3.rst19 * A new k_heap/sys_heap heap allocator has been introduced, with much better
184 * A new general purpose memory allocator, sys_heap/k_heap, has been added
994 * :github:`24359` - k_heap / sys_heap needs overview documentation
Drelease-notes-2.5.rst144 past release it was backed by a k_heap, but maintained a
1026 * :github:`31797` - need 2.5 release notes on switch to k_heap from mem_pool
1465 * :github:`29654` - k_heap APIs have no tests
Drelease-notes-2.4.rst118 the ``k_heap`` and ``sys_heap`` APIs. These APIs are not tagged with
Drelease-notes-2.6.rst1774 * :github:`33009` - kernel: k_heap failures on small heaps
Drelease-notes-2.7.rst536 * A new k_heap/sys_heap allocator, with improved performance