/Zephyr-latest/kernel/ |
D | stack.c | 27 void k_stack_init(struct k_stack *stack, stack_data_t *buffer, in k_stack_init() 36 SYS_PORT_TRACING_OBJ_INIT(k_stack, stack); in k_stack_init() 44 int32_t z_impl_k_stack_alloc_init(struct k_stack *stack, uint32_t num_entries) in z_impl_k_stack_alloc_init() 49 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_stack, alloc_init, stack); in z_impl_k_stack_alloc_init() 60 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_stack, alloc_init, stack, ret); in z_impl_k_stack_alloc_init() 66 static inline int32_t z_vrfy_k_stack_alloc_init(struct k_stack *stack, in z_vrfy_k_stack_alloc_init() 80 int k_stack_cleanup(struct k_stack *stack) in k_stack_cleanup() 82 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_stack, cleanup, stack); in k_stack_cleanup() 85 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_stack, cleanup, stack, -EAGAIN); in k_stack_cleanup() 96 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_stack, cleanup, stack, 0); in k_stack_cleanup() [all …]
|
D | userspace.c | 576 k_stack_cleanup((struct k_stack *)ko->name); in unref_check()
|
/Zephyr-latest/tests/kernel/stack/stack/src/ |
D | test_stack_contexts.c | 18 struct k_stack stack; 29 static void tstack_push(struct k_stack *pstack) in tstack_push() 37 static void tstack_pop(struct k_stack *pstack) in tstack_pop() 51 tstack_push((struct k_stack *)p); in tIsr_entry_push() 56 tstack_pop((struct k_stack *)p); in tIsr_entry_pop() 61 tstack_pop((struct k_stack *)p1); in tThread_entry() 63 tstack_push((struct k_stack *)p1); in tThread_entry() 67 static void tstack_thread_thread(struct k_stack *pstack) in tstack_thread_thread() 85 static void tstack_thread_isr(struct k_stack *pstack) in tstack_thread_isr() 133 struct k_stack *th_stack = k_object_alloc(K_OBJ_STACK); in ZTEST_USER() [all …]
|
D | test_stack_fail.c | 16 extern struct k_stack stack; 20 static void stack_pop_fail(struct k_stack *rx_data_stack) in stack_pop_fail() 99 struct k_stack *alloc_stack = k_object_alloc(K_OBJ_STACK); in ZTEST_USER() 126 struct k_stack *alloc_stack = k_object_alloc(K_OBJ_STACK); in ZTEST_USER() 161 struct k_stack *alloc_stack = k_object_alloc(K_OBJ_STACK); in ZTEST_USER()
|
D | main.c | 71 extern struct k_stack kstack; 72 extern struct k_stack stack; 82 k_stack_push((struct k_stack *)p, data_isr[i]); in tIsr_entry_push() 93 k_stack_pop((struct k_stack *)p, &data1[i], K_NO_WAIT); in tIsr_entry_pop() 95 k_stack_pop((struct k_stack *)p, &data2[i], K_NO_WAIT); in tIsr_entry_pop() 107 k_stack_pop((struct k_stack *)p1, &tmp[i - 1], K_NO_WAIT); in thread_entry_fn_single() 114 k_stack_push((struct k_stack *)p1, data2[i]); in thread_entry_fn_single() 277 struct k_stack stack3; in ZTEST() 308 extern struct k_stack threadstack1;
|
/Zephyr-latest/subsys/tracing/ |
D | tracing_tracking.c | 25 struct k_stack *_track_list_k_stack; 88 void sys_track_k_stack_init(struct k_stack *stack) in sys_track_k_stack_init() 90 SYS_PORT_TRACING_TYPE_MASK(k_stack, in sys_track_k_stack_init() 153 SYS_PORT_TRACING_TYPE_MASK(k_stack, in sys_track_static_init() 154 SYS_TRACK_STATIC_INIT(k_stack)); in sys_track_static_init()
|
/Zephyr-latest/tests/kernel/pipe/pipe/src/ |
D | main.c | 12 extern struct k_stack stack_1;
|
/Zephyr-latest/tests/kernel/pipe/pipe_api/src/ |
D | main.c | 19 extern struct k_stack tstack;
|
/Zephyr-latest/tests/kernel/common/src/ |
D | main.c | 66 extern struct k_stack eno_stack;
|
/Zephyr-latest/tests/benchmarks/latency_measure/ |
D | README.rst | 26 * Time it takes to push and pop to/from a k_stack 100 …stack.push.immediate.kernel - Add data to k_stack (no ctx switch) : … 101 …stack.pop.immediate.kernel - Get data from k_stack (no ctx switch) : … 102 …stack.pop.blocking.k_to_k - Get data from k_stack (w/ ctx switch) : … 103 …stack.push.wake+ctx.k_to_k - Add data to k_stack (w/ ctx switch) : … 153 …stack.push.immediate.kernel - Add data to k_stack (no ctx switch) : … 154 …stack.pop.immediate.kernel - Get data from k_stack (no ctx switch) : … 155 …stack.pop.blocking.k_to_k - Get data from k_stack (w/ ctx switch) : … 156 …stack.push.wake+ctx.k_to_k - Add data to k_stack (w/ ctx switch) : … 210 …stack.push.immediate.kernel - Add data to k_stack (no ctx switch) : … [all …]
|
/Zephyr-latest/include/zephyr/tracing/ |
D | tracking.h | 41 extern struct k_stack *_track_list_k_stack; 105 void sys_track_k_stack_init(struct k_stack *stack);
|
/Zephyr-latest/samples/philosophers/src/ |
D | phil_obj_abstract.h | 75 #define fork_t struct k_stack * 80 struct k_stack stack;
|
/Zephyr-latest/tests/kernel/obj_tracking/src/ |
D | main.c | 36 struct k_stack stack; in ZTEST() 96 list = SYS_PORT_TRACK_NEXT((struct k_stack *)list); in ZTEST()
|
/Zephyr-latest/tests/benchmarks/sys_kernel/src/ |
D | stack.c | 11 struct k_stack stack_1; 12 struct k_stack stack_2;
|
/Zephyr-latest/tests/integration/kernel/src/ |
D | main.c | 186 k_stack_pop((struct k_stack *)p1, (stack_data_t *)&rx_data, K_NO_WAIT); in thread_entry_fn_stack() 195 k_stack_push((struct k_stack *)p1, (stack_data_t)&stack_data[i]); in thread_entry_fn_stack()
|
/Zephyr-latest/subsys/tracing/test/ |
D | tracing_test.h | 594 void sys_trace_k_stack_init(struct k_stack *stack, stack_data_t *buffer, uint32_t num_entries); 595 void sys_trace_k_stack_alloc_init_enter(struct k_stack *stack, uint32_t num_entries); 596 void sys_trace_k_stack_alloc_init_exit(struct k_stack *stack, uint32_t num_entries, int ret); 597 void sys_trace_k_stack_cleanup_enter(struct k_stack *stack); 598 void sys_trace_k_stack_cleanup_exit(struct k_stack *stack, int ret); 599 void sys_trace_k_stack_push_enter(struct k_stack *stack, stack_data_t data); 600 void sys_trace_k_stack_push_exit(struct k_stack *stack, stack_data_t data, int ret); 601 void sys_trace_k_stack_pop_blocking(struct k_stack *stack, stack_data_t *data, k_timeout_t timeout); 602 void sys_trace_k_stack_pop_exit(struct k_stack *stack, stack_data_t *data, k_timeout_t timeout,
|
/Zephyr-latest/include/zephyr/ |
D | kernel.h | 80 struct k_stack; 2869 struct k_stack { struct 2876 SYS_PORT_TRACING_TRACKING_FIELD(k_stack) argument 2910 void k_stack_init(struct k_stack *stack, 2928 __syscall int32_t k_stack_alloc_init(struct k_stack *stack, 2942 int k_stack_cleanup(struct k_stack *stack); 2957 __syscall int k_stack_push(struct k_stack *stack, stack_data_t data); 2979 __syscall int k_stack_pop(struct k_stack *stack, stack_data_t *data, 2995 STRUCT_SECTION_ITERABLE(k_stack, name) = \
|
/Zephyr-latest/cmake/sca/eclair/ECL/ |
D | extra.ecl | 71 -extra_definitions+="^_(_static_thread_data|k_timer|k_mem_slab|k_mem_pool|k_heap|k_mutex|k_stack|k_…
|
/Zephyr-latest/doc/kernel/services/data_passing/ |
D | stacks.rst | 58 A stack is defined using a variable of type :c:struct:`k_stack`. 72 struct k_stack my_stack;
|
/Zephyr-latest/include/zephyr/linker/ |
D | common-ram.ld | 80 ITERABLE_SECTION_RAM_GC_ALLOWED(k_stack, Z_LINK_ITERABLE_SUBALIGN)
|
/Zephyr-latest/tests/benchmarks/latency_measure/src/ |
D | stack.c | 27 static struct k_stack stack;
|
/Zephyr-latest/tests/kernel/obj_core/obj_core/src/ |
D | main.c | 20 static struct k_stack stack2;
|
/Zephyr-latest/cmake/linker_script/common/ |
D | common-ram.cmake | 39 zephyr_iterable_section(NAME k_stack GROUP DATA_REGION ${XIP_ALIGN_WITH_INPUT} SUBALIGN ${CONFIG_LI…
|
/Zephyr-latest/tests/kernel/mem_protect/mem_protect/src/ |
D | kobject.c | 1254 struct k_stack *s; in ZTEST() 1323 struct k_stack s;
|
/Zephyr-latest/doc/kernel/usermode/ |
D | memory_domain.rst | 110 - :c:func:`k_stack_alloc_init` sets up a k_stack with its storage 114 k_stack in supervisor mode with :c:func:`k_stack_init`.
|