/Zephyr-Core-3.6.0/kernel/ |
D | stack.c | 26 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 …]
|
D | userspace.c | 567 k_stack_cleanup((struct k_stack *)ko->name); in unref_check()
|
/Zephyr-Core-3.6.0/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-Core-3.6.0/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() 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/ |
D | main.c | 12 extern struct k_stack stack_1;
|
/Zephyr-Core-3.6.0/tests/kernel/pipe/pipe_api/src/ |
D | main.c | 19 extern struct k_stack tstack;
|
/Zephyr-Core-3.6.0/tests/kernel/common/src/ |
D | main.c | 66 extern struct k_stack eno_stack;
|
/Zephyr-Core-3.6.0/include/zephyr/tracing/ |
D | tracking.h | 41 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/ |
D | main.c | 36 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/ |
D | stack.c | 11 struct k_stack stack_1; 12 struct k_stack stack_2;
|
/Zephyr-Core-3.6.0/samples/philosophers/src/ |
D | phil_obj_abstract.h | 75 #define fork_t struct k_stack * 80 struct k_stack stack;
|
/Zephyr-Core-3.6.0/subsys/tracing/test/ |
D | tracing_test.h | 579 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/ |
D | kernel.h | 78 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/ |
D | stacks.rst | 58 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/ |
D | common-ram.ld | 76 ITERABLE_SECTION_RAM_GC_ALLOWED(k_stack, 4)
|
/Zephyr-Core-3.6.0/tests/kernel/obj_core/obj_core/src/ |
D | main.c | 20 static struct k_stack stack2;
|
/Zephyr-Core-3.6.0/cmake/linker_script/common/ |
D | common-ram.cmake | 39 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/ |
D | kobject.c | 1254 struct k_stack *s; in ZTEST() 1323 struct k_stack s;
|
/Zephyr-Core-3.6.0/doc/kernel/usermode/ |
D | memory_domain.rst | 95 - :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/ |
D | index.rst | 368 struct k_stack *_track_list_k_stack;
|
/Zephyr-Core-3.6.0/doc/releases/ |
D | release-notes-1.12.rst | 619 * :github:`7285` - buffer management issues with k_stack syscalls
|
D | release-notes-2.5.rst | 1961 * :github:`3893` - Enhance k_stack_push() to check k_stack->top to avoid corruption
|