/Zephyr-latest/tests/kernel/mem_protect/protection/ |
D | README.rst | 43 Executing thread ID (thread): 0x200001bc 52 Executing thread ID (thread): 0x200001bc 61 Executing thread ID (thread): 0x200001bc 70 Executing thread ID (thread): 0x200001bc 79 Executing thread ID (thread): 0x200001bc
|
/Zephyr-latest/arch/nios2/core/ |
D | thread.c | 31 void arch_new_thread(struct k_thread *thread, k_thread_stack_t *stack, in arch_new_thread() argument 46 thread->callee_saved.sp = (uint32_t)iframe; in arch_new_thread() 47 thread->callee_saved.ra = (uint32_t)z_thread_entry_wrapper; in arch_new_thread() 48 thread->callee_saved.key = NIOS2_STATUS_PIE_MSK; in arch_new_thread()
|
/Zephyr-latest/drivers/can/ |
D | Kconfig.loopback | 24 int "TX thread stack size" 27 Stack size of the TX thread. 28 The TX thread calls the callbacks of the receiver 32 int "TX thread priority" 35 Priority of the TX thread. 36 The TX thread calls the callbacks of the receiver 44 The send functions puts frame int this queue and TX thread takes the
|
/Zephyr-latest/tests/kernel/spinlock/src/ |
D | spinlock_fairness.c | 87 struct k_thread *thread = get_thread(core_id); in test_init() local 89 k_thread_create(thread, tstack[core_id], STACK_SIZE, in test_init() 101 k_thread_cpu_pin(thread, core_id); in test_init() 130 struct k_thread *thread = get_thread(core_id); in ZTEST() local 132 k_thread_start(thread); in ZTEST() 136 struct k_thread *thread = get_thread(core_id); in ZTEST() local 138 k_thread_join(thread, K_FOREVER); in ZTEST()
|
/Zephyr-latest/arch/xtensa/core/ |
D | mpu.c | 629 void xtensa_mpu_map_write(struct k_thread *thread) in xtensa_mpu_map_write() argument 640 struct xtensa_mpu_map *map = thread->arch.mpu_map; in xtensa_mpu_map_write() 895 int arch_mem_domain_thread_add(struct k_thread *thread) in arch_mem_domain_thread_add() argument 900 struct k_mem_domain *domain = thread->mem_domain_info.mem_domain; in arch_mem_domain_thread_add() 906 struct xtensa_mpu_map *old_map = thread->arch.mpu_map; in arch_mem_domain_thread_add() 908 bool is_user = (thread->base.user_options & K_USER) != 0; in arch_mem_domain_thread_add() 911 uintptr_t stack_end_addr = thread->stack_info.start + thread->stack_info.size; in arch_mem_domain_thread_add() 913 if (stack_end_addr < thread->stack_info.start) { in arch_mem_domain_thread_add() 926 thread->stack_info.start, stack_end_addr, in arch_mem_domain_thread_add() 935 thread->arch.mpu_map = &domain->arch.mpu_map; in arch_mem_domain_thread_add() [all …]
|
/Zephyr-latest/arch/arm64/core/cortex_r/ |
D | arm_mpu.c | 636 static int configure_dynamic_mpu_regions(struct k_thread *thread) in configure_dynamic_mpu_regions() argument 640 struct dynamic_region_info *dyn_regions = thread->arch.regions; in configure_dynamic_mpu_regions() 646 while (!atomic_cas(&thread->arch.flushing, 0, 1)) { in configure_dynamic_mpu_regions() 649 thread->arch.region_num = 0; in configure_dynamic_mpu_regions() 660 struct k_mem_domain *mem_domain = thread->mem_domain_info.mem_domain; in configure_dynamic_mpu_regions() 690 LOG_DBG("configure user thread %p's context", thread); in configure_dynamic_mpu_regions() 691 if ((thread->base.user_options & K_USER) != 0) { in configure_dynamic_mpu_regions() 695 thread->stack_info.start, in configure_dynamic_mpu_regions() 696 thread->stack_info.size, in configure_dynamic_mpu_regions() 709 if (thread->arch.stack_limit != 0) { in configure_dynamic_mpu_regions() [all …]
|
/Zephyr-latest/kernel/ |
D | sem.c | 98 struct k_thread *thread; in z_impl_k_sem_give() local 103 thread = z_unpend_first_thread(&sem->wait_q); in z_impl_k_sem_give() 105 if (unlikely(thread != NULL)) { in z_impl_k_sem_give() 106 arch_thread_return_value_set(thread, 0); in z_impl_k_sem_give() 107 z_ready_thread(thread); in z_impl_k_sem_give() 168 struct k_thread *thread; in z_impl_k_sem_reset() local 173 thread = z_unpend_first_thread(&sem->wait_q); in z_impl_k_sem_reset() 174 if (thread == NULL) { in z_impl_k_sem_reset() 178 arch_thread_return_value_set(thread, -EAGAIN); in z_impl_k_sem_reset() 179 z_ready_thread(thread); in z_impl_k_sem_reset()
|
D | futex.c | 31 struct k_thread *thread; in z_impl_k_futex_wake() local 42 thread = z_unpend_first_thread(&futex_data->wait_q); in z_impl_k_futex_wake() 43 if (thread != NULL) { in z_impl_k_futex_wake() 45 arch_thread_return_value_set(thread, 0); in z_impl_k_futex_wake() 46 z_ready_thread(thread); in z_impl_k_futex_wake() 48 } while (thread && wake_all); in z_impl_k_futex_wake()
|
/Zephyr-latest/arch/x86/core/ia32/ |
D | tls.c | 13 void z_x86_tls_update_gdt(struct k_thread *thread) in z_x86_tls_update_gdt() argument 27 sd->base_low = thread->tls & 0xFFFFU; in z_x86_tls_update_gdt() 28 sd->base_mid = (thread->tls >> 16) & 0xFFU; in z_x86_tls_update_gdt() 29 sd->base_hi = (thread->tls >> 24) & 0xFFU; in z_x86_tls_update_gdt()
|
/Zephyr-latest/doc/kernel/services/other/ |
D | thread_local_storage.rst | 6 Thread Local Storage (TLS) allows variables to be allocated on a per-thread 7 basis. These variables are stored in the thread stack which means every 8 thread has its own copy of these variables. 16 To enable thread local storage in Zephyr, :kconfig:option:`CONFIG_THREAD_LOCAL_STORAGE` 21 thread local storage and/or the toolchain does not support TLS. 24 :kconfig:option:`CONFIG_ERRNO` to let the variable ``errno`` be a thread local 32 The macro ``Z_THREAD_LOCAL`` can be used to declare thread local variables. 34 For example, to declare a thread local variable in header files: 52 Using the thread local variable is the same as using other variable, for example:
|
/Zephyr-latest/tests/misc/llext-edk/src/ |
D | main.c | 50 void load_and_run_extension(int thread_flags, struct k_thread *thread, in load_and_run_extension() argument 66 k_thread_create(thread, stack, STACK_SIZE, in load_and_run_extension() 70 k_mem_domain_add_thread(domain, thread); in load_and_run_extension() 71 k_thread_heap_assign(thread, heap); in load_and_run_extension() 73 k_thread_start(thread); in load_and_run_extension() 74 k_thread_join(thread, K_FOREVER); in load_and_run_extension()
|
/Zephyr-latest/samples/subsys/llext/edk/app/src/ |
D | main.c | 65 k_tid_t thread; member 110 if (extension_threads[i].thread == k_current_get()) { in k_sys_fatal_error_handler() 118 struct k_thread *thread, in run_extension_on_thread() argument 133 k_thread_create(thread, stack, USER_STACKSIZE, in run_extension_on_thread() 136 k_mem_domain_add_thread(domain, thread); in run_extension_on_thread() 139 k_thread_heap_assign(thread, heap); in run_extension_on_thread() 141 extension_threads[max_extension_thread_idx].thread = thread; in run_extension_on_thread() 144 k_thread_start(thread); in run_extension_on_thread()
|
/Zephyr-latest/drivers/adc/ |
D | Kconfig.max1125x | 24 int "ADC MAX1125X async thread priority" 28 int "Priority for the ADC data acquisition thread" 31 Priority level for the internal ADC data acquisition thread. 34 int "Stack size for the ADC data acquisition thread" 38 thread.
|
/Zephyr-latest/drivers/sensor/vishay/vcnl36825t/ |
D | Kconfig | 31 bool "use global thread" 35 bool "use own thread" 43 int "thread priority" 47 Priority of thread used by the driver to handle interrupts. 50 int "thread stack size" 54 Stack size of thread used by the driver to handle interrupts.
|
/Zephyr-latest/doc/kernel/usermode/ |
D | mpu_userspace.rst | 7 set of stacks. These stacks exist in a 1:1 relationship with each thread stack 12 ELF file and finds all of the thread stack objects. A set of privileged 16 During the process of dropping a thread to user mode, the privileged stack 18 infrastructure to configure the MPU regions properly for the thread stack and 21 During system calls, the user mode thread's access to the system call and the 22 passed-in parameters are all validated. The user mode thread is then elevated 25 thread is set back to user mode and the stack is restored to the user stack.
|
/Zephyr-latest/tests/arch/arm/arm_thread_swap/ |
D | README.txt | 1 Title: Test suite to verify the thread-swap (context-switch) and system-calls 8 This test verifies that the ARM thread context-switch mechanism 11 at thread swap-out and swap-in, respectively 13 restored, properly, at thread swap-out and swap-in, respectively, 14 when the thread is using the floating-point registers 15 - the thread execution priority (BASEPRI) is saved and restored, 16 properly, at thread context-switch 18 at thread swap-in 24 The test verifies the correct behavior of the thread context-switch, 26 to pending state), as well as when the thread itself triggers its [all …]
|
/Zephyr-latest/tests/benchmarks/thread_metric/ |
D | thread_metric_readme.txt | 14 This is the baseline test consisting of a single thread. This 23 Each thread will increment its run counter and then relinquish to 24 the next thread. At the end of the test the counters will be verified 32 In this test, all threads except the lowest priority thread are 33 left in a suspended state. The lowest priority thread will resume 34 the next highest priority thread. That thread will resume the 35 next highest priority thread and so on until the highest priority 36 thread executes. Each thread will increment its run count and then 37 call thread suspend. Eventually the processing will return to the 38 lowest priority thread, which is still in the middle of the thread [all …]
|
/Zephyr-latest/arch/arm64/core/ |
D | fpu.c | 95 static void flush_owned_fpu(struct k_thread *thread) in flush_owned_fpu() argument 105 if (atomic_ptr_get(&_kernel.cpus[i].arch.fpu_owner) != thread) { in flush_owned_fpu() 128 if (thread == _current) { in flush_owned_fpu() 130 while (atomic_ptr_get(&_kernel.cpus[i].arch.fpu_owner) == thread) { in flush_owned_fpu() 328 int arch_float_disable(struct k_thread *thread) in arch_float_disable() argument 330 if (thread != NULL) { in arch_float_disable() 334 flush_owned_fpu(thread); in arch_float_disable() 336 if (thread == atomic_ptr_get(&_current_cpu->arch.fpu_owner)) { in arch_float_disable() 347 int arch_float_enable(struct k_thread *thread, unsigned int options) in arch_float_enable() argument
|
/Zephyr-latest/samples/modules/tflite-micro/tflm_ethosu/src/ |
D | main.cpp | 216 k_thread thread; in main() member 236 auto &thread = threads[nthreads]; in main() local 239 thread.id = k_thread_create(&thread.thread, stack, stackSize, inferenceSenderTask, in main() 241 if (thread.id == 0) { in main() 259 auto &thread = threads[nthreads]; in main() local 265 thread.id = k_thread_create(&thread.thread, stack, stackSize, inferenceProcessTask, in main() 267 if (thread.id == 0) { in main()
|
/Zephyr-latest/drivers/usb/udc/ |
D | Kconfig.skeleton | 12 int "UDC controller driver internal thread stack size" 16 Skeleton device controller driver internal thread stack size. 19 int "Skeleton controller driver thread priority" 23 Skeleton device controller driver thread priority.
|
D | Kconfig.virtual | 13 int "Virtual controller driver internal thread stack size" 17 Virtual device controller driver internal thread stack size. 20 int "Virtual controller driver thread priority" 24 Virtual device controller driver thread priority.
|
D | Kconfig.rpi_pico | 15 int "UDC controller driver internal thread stack size" 18 Device controller driver internal thread stack size. 21 int "UDC controller driver thread priority" 24 Device controller driver thread priority.
|
/Zephyr-latest/lib/os/ |
D | user_work.c | 50 k_thread_create(&work_q->thread, stack, stack_size, z_work_user_q_main, in k_work_user_queue_start() 53 k_object_access_grant(&work_q->queue, &work_q->thread); in k_work_user_queue_start() 55 k_thread_name_set(&work_q->thread, name); in k_work_user_queue_start() 58 k_thread_start(&work_q->thread); in k_work_user_queue_start()
|
/Zephyr-latest/subsys/tracing/test/ |
D | tracing_test.h | 21 #define sys_port_trace_k_thread_heap_assign(thread, heap) \ argument 22 sys_trace_k_thread_heap_assign(thread, heap) 23 #define sys_port_trace_k_thread_join_enter(thread, timeout) \ argument 24 sys_trace_k_thread_join_blocking(thread, timeout) 25 #define sys_port_trace_k_thread_join_blocking(thread, timeout) \ argument 26 sys_trace_k_thread_join_blocking(thread, timeout) 27 #define sys_port_trace_k_thread_join_exit(thread, timeout, ret) \ argument 28 sys_trace_k_thread_join_exit(thread, timeout, ret) 38 #define sys_port_trace_k_thread_wakeup(thread) sys_trace_k_thread_wakeup(thread) argument 39 #define sys_port_trace_k_thread_start(thread) sys_trace_k_thread_start(thread) argument [all …]
|
/Zephyr-latest/subsys/shell/modules/kernel_service/thread/ |
D | stacks.c | 22 static void shell_stack_dump(const struct k_thread *thread, void *user_data) in shell_stack_dump() argument 27 size_t size = thread->stack_info.size; in shell_stack_dump() 31 ret = k_thread_stack_space_get(thread, &unused); in shell_stack_dump() 39 tname = k_thread_name_get((struct k_thread *)thread); in shell_stack_dump() 47 thread, tname ? tname : "NA", size, unused, size - unused, size, pcnt); in shell_stack_dump()
|