Home
last modified time | relevance | path

Searched refs:k_stack (Results 1 – 25 of 28) sorted by relevance

12

/Zephyr-latest/kernel/
Dstack.c27 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 …]
Duserspace.c576 k_stack_cleanup((struct k_stack *)ko->name); in unref_check()
/Zephyr-latest/tests/kernel/stack/stack/src/
Dtest_stack_contexts.c18 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 …]
Dtest_stack_fail.c16 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()
Dmain.c71 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/
Dtracing_tracking.c25 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/
Dmain.c12 extern struct k_stack stack_1;
/Zephyr-latest/tests/kernel/pipe/pipe_api/src/
Dmain.c19 extern struct k_stack tstack;
/Zephyr-latest/tests/kernel/common/src/
Dmain.c66 extern struct k_stack eno_stack;
/Zephyr-latest/tests/benchmarks/latency_measure/
DREADME.rst26 * 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/
Dtracking.h41 extern struct k_stack *_track_list_k_stack;
105 void sys_track_k_stack_init(struct k_stack *stack);
/Zephyr-latest/samples/philosophers/src/
Dphil_obj_abstract.h75 #define fork_t struct k_stack *
80 struct k_stack stack;
/Zephyr-latest/tests/kernel/obj_tracking/src/
Dmain.c36 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/
Dstack.c11 struct k_stack stack_1;
12 struct k_stack stack_2;
/Zephyr-latest/tests/integration/kernel/src/
Dmain.c186 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/
Dtracing_test.h594 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/
Dkernel.h80 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/
Dextra.ecl71 -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/
Dstacks.rst58 A stack is defined using a variable of type :c:struct:`k_stack`.
72 struct k_stack my_stack;
/Zephyr-latest/include/zephyr/linker/
Dcommon-ram.ld80 ITERABLE_SECTION_RAM_GC_ALLOWED(k_stack, Z_LINK_ITERABLE_SUBALIGN)
/Zephyr-latest/tests/benchmarks/latency_measure/src/
Dstack.c27 static struct k_stack stack;
/Zephyr-latest/tests/kernel/obj_core/obj_core/src/
Dmain.c20 static struct k_stack stack2;
/Zephyr-latest/cmake/linker_script/common/
Dcommon-ram.cmake39 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/
Dkobject.c1254 struct k_stack *s; in ZTEST()
1323 struct k_stack s;
/Zephyr-latest/doc/kernel/usermode/
Dmemory_domain.rst110 - :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`.

12