Home
last modified time | relevance | path

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

/Zephyr-Core-3.6.0/kernel/
Dstack.c26 void k_stack_init(struct k_stack *stack, stack_data_t *buffer, in k_stack_init()
34 SYS_PORT_TRACING_OBJ_INIT(k_stack, stack); in k_stack_init()
42 int32_t z_impl_k_stack_alloc_init(struct k_stack *stack, uint32_t num_entries) in z_impl_k_stack_alloc_init()
47 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_stack, alloc_init, stack); in z_impl_k_stack_alloc_init()
58 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_stack, alloc_init, stack, ret); in z_impl_k_stack_alloc_init()
64 static inline int32_t z_vrfy_k_stack_alloc_init(struct k_stack *stack, in z_vrfy_k_stack_alloc_init()
74 int k_stack_cleanup(struct k_stack *stack) in k_stack_cleanup()
76 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_stack, cleanup, stack); in k_stack_cleanup()
79 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_stack, cleanup, stack, -EAGAIN); in k_stack_cleanup()
90 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_stack, cleanup, stack, 0); in k_stack_cleanup()
[all …]
Duserspace.c567 k_stack_cleanup((struct k_stack *)ko->name); in unref_check()
/Zephyr-Core-3.6.0/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-Core-3.6.0/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()
143 SYS_PORT_TRACING_TYPE_MASK(k_stack, in sys_track_static_init()
144 SYS_TRACK_STATIC_INIT(k_stack)); in sys_track_static_init()
/Zephyr-Core-3.6.0/tests/kernel/pipe/pipe/src/
Dmain.c12 extern struct k_stack stack_1;
/Zephyr-Core-3.6.0/tests/kernel/pipe/pipe_api/src/
Dmain.c19 extern struct k_stack tstack;
/Zephyr-Core-3.6.0/tests/kernel/common/src/
Dmain.c66 extern struct k_stack eno_stack;
/Zephyr-Core-3.6.0/include/zephyr/tracing/
Dtracking.h41 extern struct k_stack *_track_list_k_stack;
102 void sys_track_k_stack_init(struct k_stack *stack);
/Zephyr-Core-3.6.0/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-Core-3.6.0/tests/benchmarks/sys_kernel/src/
Dstack.c11 struct k_stack stack_1;
12 struct k_stack stack_2;
/Zephyr-Core-3.6.0/samples/philosophers/src/
Dphil_obj_abstract.h75 #define fork_t struct k_stack *
80 struct k_stack stack;
/Zephyr-Core-3.6.0/subsys/tracing/test/
Dtracing_test.h579 void sys_trace_k_stack_init(struct k_stack *stack, stack_data_t *buffer, uint32_t num_entries);
580 void sys_trace_k_stack_alloc_init_enter(struct k_stack *stack, uint32_t num_entries);
581 void sys_trace_k_stack_alloc_init_exit(struct k_stack *stack, uint32_t num_entries, int ret);
582 void sys_trace_k_stack_cleanup_enter(struct k_stack *stack);
583 void sys_trace_k_stack_cleanup_exit(struct k_stack *stack, int ret);
584 void sys_trace_k_stack_push_enter(struct k_stack *stack, stack_data_t data);
585 void sys_trace_k_stack_push_exit(struct k_stack *stack, stack_data_t data, int ret);
586 void sys_trace_k_stack_pop_blocking(struct k_stack *stack, stack_data_t *data, k_timeout_t timeout);
587 void sys_trace_k_stack_pop_exit(struct k_stack *stack, stack_data_t *data, k_timeout_t timeout,
/Zephyr-Core-3.6.0/include/zephyr/
Dkernel.h78 struct k_stack;
2745 struct k_stack { struct
2752 SYS_PORT_TRACING_TRACKING_FIELD(k_stack) argument
2786 void k_stack_init(struct k_stack *stack,
2804 __syscall int32_t k_stack_alloc_init(struct k_stack *stack,
2818 int k_stack_cleanup(struct k_stack *stack);
2833 __syscall int k_stack_push(struct k_stack *stack, stack_data_t data);
2855 __syscall int k_stack_pop(struct k_stack *stack, stack_data_t *data,
2871 STRUCT_SECTION_ITERABLE(k_stack, name) = \
/Zephyr-Core-3.6.0/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-Core-3.6.0/include/zephyr/linker/
Dcommon-ram.ld76 ITERABLE_SECTION_RAM_GC_ALLOWED(k_stack, 4)
/Zephyr-Core-3.6.0/tests/kernel/obj_core/obj_core/src/
Dmain.c20 static struct k_stack stack2;
/Zephyr-Core-3.6.0/cmake/linker_script/common/
Dcommon-ram.cmake39 zephyr_iterable_section(NAME k_stack GROUP DATA_REGION ${XIP_ALIGN_WITH_INPUT} SUBALIGN 4)
/Zephyr-Core-3.6.0/tests/kernel/mem_protect/mem_protect/src/
Dkobject.c1254 struct k_stack *s; in ZTEST()
1323 struct k_stack s;
/Zephyr-Core-3.6.0/doc/kernel/usermode/
Dmemory_domain.rst95 - :c:func:`k_stack_alloc_init` sets up a k_stack with its storage
99 k_stack in supervisor mode with :c:func:`k_stack_init`.
/Zephyr-Core-3.6.0/doc/services/tracing/
Dindex.rst368 struct k_stack *_track_list_k_stack;
/Zephyr-Core-3.6.0/doc/releases/
Drelease-notes-1.12.rst619 * :github:`7285` - buffer management issues with k_stack syscalls
Drelease-notes-2.5.rst1961 * :github:`3893` - Enhance k_stack_push() to check k_stack->top to avoid corruption