Home
last modified time | relevance | path

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

12

/Zephyr-latest/kernel/
Dkheap.c15 void k_heap_init(struct k_heap *heap, void *mem, size_t bytes) in k_heap_init()
20 SYS_PORT_TRACING_OBJ_INIT(k_heap, heap); in k_heap_init()
25 STRUCT_SECTION_FOREACH(k_heap, heap) { in statics_init()
65 void *k_heap_aligned_alloc(struct k_heap *heap, size_t align, size_t bytes, in k_heap_aligned_alloc()
73 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_heap, aligned_alloc, heap, timeout); in k_heap_aligned_alloc()
90 SYS_PORT_TRACING_OBJ_FUNC_BLOCKING(k_heap, aligned_alloc, heap, timeout); in k_heap_aligned_alloc()
102 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_heap, aligned_alloc, heap, timeout, ret); in k_heap_aligned_alloc()
108 void *k_heap_alloc(struct k_heap *heap, size_t bytes, k_timeout_t timeout) in k_heap_alloc()
110 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_heap, alloc, heap, timeout); in k_heap_alloc()
114 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_heap, alloc, heap, 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()
119 struct k_heap *heap, **heap_ref; in k_realloc()
163 struct k_heap *heap; in z_thread_aligned_alloc()
/Zephyr-latest/subsys/tracing/test/
Dtracing_string_format_test.c344 void sys_trace_k_heap_init(struct k_heap *h, void *mem, size_t bytes) in sys_trace_k_heap_init()
349 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()
354 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()
359 void sys_trace_k_heap_calloc_enter(struct k_heap *h, size_t num, size_t size, k_timeout_t timeout) in sys_trace_k_heap_calloc_enter()
364 void sys_trace_k_heap_free(struct k_heap *h, void *mem) in sys_trace_k_heap_free()
369 void sys_trace_k_heap_realloc_enter(struct k_heap *h, void *ptr, size_t bytes, k_timeout_t timeout) in sys_trace_k_heap_realloc_enter()
373 void sys_trace_k_heap_realloc_exit(struct k_heap *h, void *ptr, size_t bytes, k_timeout_t timeout, in sys_trace_k_heap_realloc_exit()
379 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()
384 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()
389 void sys_trace_k_heap_calloc_exit(struct k_heap *h, size_t num, size_t size, k_timeout_t timeout, in sys_trace_k_heap_calloc_exit()
[all …]
Dtracing_test.h488 void sys_trace_k_thread_heap_assign(struct k_thread *thread, struct k_heap *heap);
664 void sys_trace_k_heap_init(struct k_heap *h, void *mem, size_t bytes);
665 void sys_trace_k_heap_alloc_enter(struct k_heap *h, size_t bytes, k_timeout_t timeout);
666 void sys_trace_k_heap_alloc_exit(struct k_heap *h, size_t bytes, k_timeout_t timeout, void *ret);
667 void sys_trace_k_heap_calloc_enter(struct k_heap *h, size_t num, size_t size, k_timeout_t timeout);
668 void sys_trace_k_heap_calloc_exit(struct k_heap *h, size_t num, size_t size, k_timeout_t timeout,
670 void sys_trace_k_heap_aligned_alloc_enter(struct k_heap *h, size_t bytes, k_timeout_t timeout);
671 void sys_trace_k_heap_aligned_alloc_blocking(struct k_heap *h, size_t bytes, k_timeout_t timeout);
672 void sys_trace_k_heap_aligned_alloc_exit(struct k_heap *h, size_t bytes, k_timeout_t timeout,
674 void sys_trace_k_heap_free(struct k_heap *h, void *mem);
[all …]
/Zephyr-latest/subsys/llext/
Dllext_priv.h30 extern struct k_heap llext_heap; in llext_alloc()
37 extern struct k_heap llext_heap; in llext_aligned_alloc()
44 extern struct k_heap llext_heap; in llext_free()
/Zephyr-latest/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.h94 __syscall struct k_heap *ret_resource_pool_ptr(void);
/Zephyr-latest/tests/bluetooth/host/conn/mocks/
Dkernel.c30 DEFINE_FAKE_VALUE_FUNC(void *, k_heap_alloc, struct k_heap *, size_t, k_timeout_t);
31 DEFINE_FAKE_VOID_FUNC(k_heap_free, struct k_heap *, void *);
Dkernel.h53 DECLARE_FAKE_VALUE_FUNC(void *, k_heap_alloc, struct k_heap *, size_t, k_timeout_t);
54 DECLARE_FAKE_VOID_FUNC(k_heap_free, struct k_heap *, void *);
/Zephyr-latest/samples/modules/tflite-micro/tflm_ethosu/src/
Dmain.cpp107 k_heap *heap = static_cast<k_heap *>(k_malloc(sizeof(k_heap))); in allocateHeap()
127 k_thread_heap_assign(k_current_get(), static_cast<k_heap *>(heap)); in inferenceProcessTask()
165 k_thread_heap_assign(k_current_get(), static_cast<k_heap *>(heap)); in inferenceSenderTask()
/Zephyr-latest/tests/kernel/queue/src/
Dtest_queue.h14 extern struct k_heap test_pool;
/Zephyr-latest/tests/kernel/pipe/pipe_api/src/
Dmain.c21 extern struct k_heap test_pool;
/Zephyr-latest/soc/espressif/common/
Desp_heap_runtime.c26 static struct k_heap esp_heap_runtime;
/Zephyr-latest/drivers/mspi/
Dmspi_ambiq.h20 STRUCT_SECTION_ITERABLE(k_heap, name) = { \
/Zephyr-latest/tests/misc/llext-edk/src/
Dmain.c52 k_thread_stack_t *stack, struct k_heap *heap, in load_and_run_extension()
/Zephyr-latest/include/zephyr/drivers/usb/
Dudc_buf.h79 STRUCT_SECTION_ITERABLE(k_heap, name) = { \
/Zephyr-latest/subsys/fs/ext2/
Dext2_impl.h15 extern struct k_heap direntry_heap;
/Zephyr-latest/include/zephyr/kernel/
Dthread.h349 struct k_heap *resource_pool;
/Zephyr-latest/include/zephyr/
Dkernel.h472 struct k_heap *heap) in k_thread_heap_assign()
5445 struct k_heap { struct
5464 void k_heap_init(struct k_heap *h, void *mem,
5487 void *k_heap_aligned_alloc(struct k_heap *h, size_t align, size_t bytes,
5511 void *k_heap_alloc(struct k_heap *h, size_t bytes,
5536 void *k_heap_calloc(struct k_heap *h, size_t num, size_t size, k_timeout_t timeout)
5562 void *k_heap_realloc(struct k_heap *h, void *ptr, size_t bytes, k_timeout_t timeout)
5575 void k_heap_free(struct k_heap *h, void *mem) __attribute_nonnull(1);
5602 STRUCT_SECTION_ITERABLE(k_heap, name) = { \
/Zephyr-latest/samples/subsys/llext/edk/app/src/
Dmain.c120 struct k_heap *heap, in run_extension_on_thread()
/Zephyr-latest/cmake/sca/eclair/ECL/
Dextra.ecl71 -extra_definitions+="^_(_static_thread_data|k_timer|k_mem_slab|k_mem_pool|k_heap|k_mutex|k_stack|k_…
/Zephyr-latest/include/zephyr/linker/
Dcommon-ram.ld78 ITERABLE_SECTION_RAM_GC_ALLOWED(k_heap, Z_LINK_ITERABLE_SUBALIGN)
/Zephyr-latest/doc/kernel/memory_management/
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-latest/cmake/linker_script/common/
Dcommon-ram.cmake37 zephyr_iterable_section(NAME k_heap GROUP DATA_REGION ${XIP_ALIGN_WITH_INPUT} SUBALIGN ${CONFIG_LIN…
/Zephyr-latest/lib/net_buf/
Dbuf.c110 struct k_heap *pool = buf_pool->alloc->alloc_data; in mem_pool_data_alloc()
130 struct k_heap *pool = buf_pool->alloc->alloc_data; in mem_pool_data_unref()

12