/Zephyr-latest/subsys/net/ip/ |
D | Kconfig.stack | 9 int "TX thread stack size" 12 Set the TX thread stack size in bytes. The TX thread is waiting 14 TX thread for sending network packets destined to it. 19 int "RX thread stack size" 22 Set the RX thread stack size in bytes. The RX thread is waiting 23 data from network. There is one RX thread in the system.
|
/Zephyr-latest/tests/kernel/workq/work_queue/ |
D | README.txt | 36 - Submitting work 1 from preempt thread 38 - Submitting work 2 from coop thread 39 - Submitting work 3 from preempt thread 40 - Submitting work 4 from coop thread 42 - Submitting work 5 from preempt thread 43 - Submitting work 6 from coop thread 62 - Submitting delayed work 1 from preempt thread 63 - Submitting delayed work 3 from preempt thread 64 - Submitting delayed work 5 from preempt thread 66 - Submitting delayed work 2 from coop thread [all …]
|
/Zephyr-latest/arch/riscv/core/ |
D | thread.c | 21 void arch_new_thread(struct k_thread *thread, k_thread_stack_t *stack, in arch_new_thread() argument 70 thread->arch.exception_depth = 1; in arch_new_thread() 78 z_riscv_pmp_usermode_init(thread); in arch_new_thread() 79 thread->arch.priv_stack_start = 0; in arch_new_thread() 84 && (thread->base.user_options & K_USER)) { in arch_new_thread() 102 z_riscv_pmp_stackguard_prepare(thread); in arch_new_thread() 118 thread->callee_saved.sp = (unsigned long)stack_init; in arch_new_thread() 121 thread->callee_saved.ra = (unsigned long)z_riscv_thread_start; in arch_new_thread() 124 thread->switch_handle = thread; in arch_new_thread() 207 int arch_thread_priv_stack_space_get(const struct k_thread *thread, size_t *stack_size, in arch_thread_priv_stack_space_get() argument [all …]
|
/Zephyr-latest/kernel/include/ |
D | timeout_q.h | 47 static inline void z_add_thread_timeout(struct k_thread *thread, k_timeout_t ticks) in z_add_thread_timeout() argument 49 z_add_timeout(&thread->base.timeout, z_thread_timeout, ticks); in z_add_thread_timeout() 52 static inline void z_abort_thread_timeout(struct k_thread *thread) in z_abort_thread_timeout() argument 54 z_abort_timeout(&thread->base.timeout); in z_abort_thread_timeout() 70 static inline void z_add_thread_timeout(struct k_thread *thread, k_timeout_t ticks) 72 ARG_UNUSED(thread);
|
D | kernel_arch_interface.h | 76 void arch_new_thread(struct k_thread *thread, k_thread_stack_t *stack, 160 arch_thread_return_value_set(struct k_thread *thread, unsigned int value); 192 int arch_float_disable(struct k_thread *thread); 212 int arch_float_enable(struct k_thread *thread, unsigned int options); 239 int arch_thread_priv_stack_space_get(const struct k_thread *thread, size_t *stack_size, 605 int arch_thread_name_set(struct k_thread *thread, const char *str); 650 void arch_coredump_priv_stack_dump(struct k_thread *thread);
|
D | kernel_internal.h | 119 arch_thread_return_value_set(struct k_thread *thread, unsigned int value) in arch_thread_return_value_set() argument 121 thread->swap_retval = value; in arch_thread_return_value_set() 126 z_thread_return_value_set_with_data(struct k_thread *thread, in z_thread_return_value_set_with_data() argument 130 arch_thread_return_value_set(thread, value); in z_thread_return_value_set_with_data() 131 thread->base.swap_data = data; in z_thread_return_value_set_with_data() 168 void z_mem_domain_init_thread(struct k_thread *thread); 171 void z_mem_domain_exit_thread(struct k_thread *thread); 295 void k_thread_abort_cleanup(struct k_thread *thread); 307 void k_thread_abort_cleanup_check_reuse(struct k_thread *thread);
|
/Zephyr-latest/doc/kernel/services/scheduling/ |
D | index.rst | 12 The scheduler determines which thread is allowed to execute 13 at any point in time; this thread is known as the **current thread**. 16 opportunity to change the identity of the current thread, meaning 17 when the scheduler switches the CPU's execution from one thread 21 - transition of a thread from running state to a suspended or waiting 23 - transition of a thread to the :ref:`ready state <thread_states>`, for 25 - return to thread context after processing an interrupt 26 - when a running thread invokes :c:func:`k_yield` 28 A thread **sleeps** when it voluntarily initiates an operation that 31 Whenever the scheduler changes the identity of the current thread, [all …]
|
/Zephyr-latest/drivers/sensor/bosch/bmi08x/ |
D | Kconfig | 30 bool "Use global thread" 36 bool "Use own thread" 46 int "Accelerometer own thread priority" 50 The priority of the thread used for handling interrupts. 53 int "Accelerometer own thread stack size" 57 The thread stack size. 70 bool "Use global thread" 74 bool "Use own thread" 82 int "Own thread priority" 86 The priority of the thread used for handling interrupts. [all …]
|
/Zephyr-latest/kernel/ |
D | mem_domain.c | 260 k_tid_t thread) in add_thread_locked() argument 265 __ASSERT_NO_MSG(thread != NULL); in add_thread_locked() 267 LOG_DBG("add thread %p to domain %p\n", thread, domain); in add_thread_locked() 269 &thread->mem_domain_info.mem_domain_q_node); in add_thread_locked() 270 thread->mem_domain_info.mem_domain = domain; in add_thread_locked() 273 ret = arch_mem_domain_thread_add(thread); in add_thread_locked() 279 static int remove_thread_locked(struct k_thread *thread) in remove_thread_locked() argument 283 __ASSERT_NO_MSG(thread != NULL); in remove_thread_locked() 285 thread, thread->mem_domain_info.mem_domain); in remove_thread_locked() 286 sys_dlist_remove(&thread->mem_domain_info.mem_domain_q_node); in remove_thread_locked() [all …]
|
/Zephyr-latest/samples/subsys/task_wdt/ |
D | README.rst | 5 Monitor a thread using a task watchdog. 41 Main thread still alive... 42 Control thread started. 43 Main thread still alive... 44 Main thread still alive... 45 Main thread still alive... 46 Control thread getting stuck... 47 Main thread still alive... 48 Task watchdog channel 1 callback, thread: control
|
/Zephyr-latest/subsys/usb/device_next/class/ |
D | Kconfig.bt | 14 int "TX thread priority" 17 Bluetooth HCI USB Transport Layer TX thread priority. 20 int "TX thread stack size" 23 Bluetooth HCI USB Transport Layer TX thread stack size. 26 int "RX thread priority" 29 Bluetooth HCI USB Transport Layer RX thread priority.
|
/Zephyr-latest/modules/hal_infineon/abstraction-rtos/source/COMPONENT_ZEPHYR/ |
D | cyabs_rtos_zephyr.c | 82 static void free_thead_obj(cy_thread_t *thread) in free_thead_obj() argument 85 if ((*thread)->memptr != NULL) { in free_thead_obj() 86 k_free((*thread)->memptr); in free_thead_obj() 90 k_free(*thread); in free_thead_obj() 104 cy_rslt_t cy_rtos_create_thread(cy_thread_t *thread, cy_thread_entry_fn_t entry_function, in cy_rtos_create_thread() argument 111 if ((thread == NULL) || (stack_size < CY_RTOS_MIN_STACK_SIZE)) { in cy_rtos_create_thread() 120 *thread = k_malloc(sizeof(k_thread_wrapper_t)); in cy_rtos_create_thread() 130 (*thread)->memptr = stack_alloc; in cy_rtos_create_thread() 133 (*thread)->memptr = NULL; in cy_rtos_create_thread() 140 my_tid = k_thread_create(&(*thread)->z_thread, stack_alloc, stack_size, in cy_rtos_create_thread() [all …]
|
/Zephyr-latest/subsys/tracing/user/ |
D | tracing_user.h | 18 void sys_trace_thread_create_user(struct k_thread *thread); 19 void sys_trace_thread_abort_user(struct k_thread *thread); 20 void sys_trace_thread_suspend_user(struct k_thread *thread); 21 void sys_trace_thread_resume_user(struct k_thread *thread); 22 void sys_trace_thread_name_set_user(struct k_thread *thread); 25 void sys_trace_thread_info_user(struct k_thread *thread); 26 void sys_trace_thread_priority_set_user(struct k_thread *thread, int prio); 27 void sys_trace_thread_sched_ready_user(struct k_thread *thread); 28 void sys_trace_thread_pend_user(struct k_thread *thread); 35 void sys_trace_thread_create(struct k_thread *thread); [all …]
|
/Zephyr-latest/subsys/tracing/ctf/ |
D | ctf_top.c | 18 static void _get_thread_name(struct k_thread *thread, in _get_thread_name() argument 21 const char *tname = k_thread_name_get(thread); in _get_thread_name() 33 struct k_thread *thread; in sys_trace_k_thread_switched_out() local 35 thread = k_sched_current_thread_query(); in sys_trace_k_thread_switched_out() 36 _get_thread_name(thread, &name); in sys_trace_k_thread_switched_out() 38 ctf_top_thread_switched_out((uint32_t)(uintptr_t)thread, name); in sys_trace_k_thread_switched_out() 43 struct k_thread *thread; in sys_trace_k_thread_user_mode_enter() local 46 thread = k_sched_current_thread_query(); in sys_trace_k_thread_user_mode_enter() 47 _get_thread_name(thread, &name); in sys_trace_k_thread_user_mode_enter() 48 ctf_top_thread_user_mode_enter((uint32_t)(uintptr_t)thread, name); in sys_trace_k_thread_user_mode_enter() [all …]
|
/Zephyr-latest/include/zephyr/sys/ |
D | kobject.h | 93 struct k_thread *thread); 105 void k_object_access_revoke(const void *object, struct k_thread *thread); 152 #define K_THREAD_ACCESS_GRANT(thread, ...) argument 158 struct k_thread *thread) in z_impl_k_object_access_grant() argument 161 ARG_UNUSED(thread); in z_impl_k_object_access_grant() 168 struct k_thread *thread) in k_object_access_revoke() argument 171 ARG_UNUSED(thread); in k_object_access_revoke()
|
/Zephyr-latest/tests/kernel/sleep/ |
D | README.txt | 1 Title: cooperative thread Sleep and Wakeup APIs 38 Test thread started: id = 0x00400040 39 Helper thread started: id = 0x00400000 41 Testing: test thread sleep + helper thread wakeup test 42 Testing: test thread sleep + isr offload wakeup test 43 Testing: test thread sleep + main wakeup test thread
|
/Zephyr-latest/drivers/sensor/adi/adt7310/ |
D | Kconfig | 25 Sets thread type for the interrupt handler. 31 bool "Use global thread" 36 Use a global thread for the interrupt handler. 39 bool "Use own thread" 44 Use a separate thread for the interrupt handler. 55 higher priority. The thread is cooperative and will not be interrupted by 56 another thread until execution is released. 59 int "Stack size of the interrupt handler thread" 62 Stack size of the interrupt handler thread.
|
/Zephyr-latest/tests/kernel/smp_suspend/src/ |
D | main.c | 20 struct k_thread thread[NUM_THREADS]; variable 66 k_thread_create(&thread[i], thread_stack[i], in ZTEST() 68 i < (NUM_THREADS - 1) ? &thread[i + 1] : NULL, in ZTEST() 72 k_thread_suspend(&thread[i]); in ZTEST() 74 k_thread_start(&thread[i]); in ZTEST() 82 k_thread_resume(&thread[0]); in ZTEST()
|
/Zephyr-latest/arch/arc/core/mpu/ |
D | arc_mpu_common_internal.h | 71 void arc_core_mpu_configure_thread(struct k_thread *thread) in arc_core_mpu_configure_thread() argument 75 if (thread->base.user_options & K_USER) { in arc_core_mpu_configure_thread() 76 LOG_DBG("configure user thread %p's stack", thread); in arc_core_mpu_configure_thread() 78 (uint32_t)thread->stack_info.start, in arc_core_mpu_configure_thread() 79 thread->stack_info.size) < 0) { in arc_core_mpu_configure_thread() 80 LOG_ERR("user thread %p's stack failed", thread); in arc_core_mpu_configure_thread() 85 LOG_DBG("configure thread %p's domain", thread); in arc_core_mpu_configure_thread() 86 arc_core_mpu_configure_mem_domain(thread); in arc_core_mpu_configure_thread() 131 void arc_core_mpu_configure_mem_domain(struct k_thread *thread) in arc_core_mpu_configure_mem_domain() argument 138 if (thread) { in arc_core_mpu_configure_mem_domain() [all …]
|
/Zephyr-latest/doc/kernel/services/other/ |
D | float.rst | 36 If a thread uses any floating point register, 37 the kernel generates a fatal error condition and aborts the thread. 42 This mode is used when the application has only a single thread 46 be used by any thread (initialization in skipped on ARM Cortex-M platforms and 60 the kernel supports one or more of the following thread sub-classes: 62 * non-user: A thread that cannot use any floating point registers 64 * FPU user: A thread that can use the standard floating point registers 66 * SSE user: A thread that can use both the standard floating point registers 71 by any thread, then saves and restores these registers during 84 This means that any thread is allowed to access the floating point registers. [all …]
|
/Zephyr-latest/doc/kernel/services/synchronization/ |
D | mutexes.rst | 24 by the thread that has locked it. A count of zero indicates that the mutex 27 * An **owning thread** that identifies the thread that has locked the mutex, 33 A thread that needs to use a shared resource must first gain exclusive rights 35 by another thread, the requesting thread may choose to wait for the mutex 38 After locking a mutex, the thread may safely use the associated resource 41 that want to use the resource. When the thread no longer needs the resource 46 thread that has waited the longest. 54 A thread is permitted to lock a mutex it has already locked. 55 This allows the thread to access the associated resource at a point 58 A mutex that is repeatedly locked by a thread must be unlocked an equal number [all …]
|
/Zephyr-latest/subsys/logging/ |
D | Kconfig.processing | 26 bool "Block in thread context on full" 29 When enabled logger will block (if in the thread context) when 33 int "Maximum time (in milliseconds) thread can be blocked" 41 logging (e.g. logger or shell thread). 48 When number of buffered messages reaches the threshold thread is waken 49 up. Log processing thread ID is provided during log initialization. 51 this threshold is used by the internal thread. 54 bool "Use internal thread for log processing" 58 When enabled thread is created by the logger subsystem. Thread is 66 int "Set log processing thread startup delay" [all …]
|
/Zephyr-latest/tests/kernel/threads/thread_apis/src/ |
D | test_kthread_for_each.c | 34 static void thread_callback(const struct k_thread *thread, void *user_data) in thread_callback() argument 38 if (thread == &tdata) { in thread_callback() 41 str, thread, thread->base.prio); in thread_callback() 48 void thread_callback_unlocked(const struct k_thread *thread, void *user_data) in thread_callback_unlocked() argument 61 if (thread == &tdata) { in thread_callback_unlocked() 64 str, thread, thread->base.prio); in thread_callback_unlocked() 68 if (thread == &tdata1) { in thread_callback_unlocked() 71 str, thread, thread->base.prio); in thread_callback_unlocked()
|
/Zephyr-latest/tests/benchmarks/latency_measure/ |
D | README.rst | 9 * Time to switch from ISR back to interrupted thread 10 * Time from ISR to executing a different thread (rescheduled) 14 * Time it takes to create a new thread (without starting it) 15 * Time it takes to start a newly created thread 16 * Time it takes to suspend a thread 17 * Time it takes to resume a suspended thread 18 * Time it takes to abort a thread 22 * Time it takes to wake and switch to a thread waiting on a fifo.LIFO 25 * Time it takes to wake and switch to a thread waiting for events 32 * Kernel thread to kernel thread [all …]
|
/Zephyr-latest/include/zephyr/tracing/ |
D | tracking.h | 57 #define sys_port_track_k_thread_start(thread) argument 59 #define sys_port_track_k_thread_sched_ready(thread) argument 60 #define sys_port_track_k_thread_wakeup(thread) argument 61 #define sys_port_track_k_thread_sched_priority_set(thread, prio) argument 81 #define sys_port_track_k_thread_name_set(thread, ret) argument 119 #define sys_port_track_k_thread_start(thread) argument 121 #define sys_port_track_k_thread_sched_ready(thread) argument 122 #define sys_port_track_k_thread_wakeup(thread) argument 123 #define sys_port_track_k_thread_sched_priority_set(thread, prio) argument 138 #define sys_port_track_k_thread_name_set(thread, ret) argument
|