Home
last modified time | relevance | path

Searched defs:thread (Results 1 – 25 of 248) sorted by relevance

12345678910

/Zephyr-latest/kernel/include/
Dkthread.h40 #define z_thread_monitor_exit(thread) \ argument
46 static inline void thread_schedule_new(struct k_thread *thread, k_timeout_t delay) in thread_schedule_new()
60 static inline int thread_is_preemptible(struct k_thread *thread) in thread_is_preemptible()
67 static inline int thread_is_metairq(struct k_thread *thread) in thread_is_metairq()
79 static inline bool is_thread_dummy(struct k_thread *thread) in is_thread_dummy()
86 static inline bool z_is_thread_suspended(struct k_thread *thread) in z_is_thread_suspended()
91 static inline bool z_is_thread_pending(struct k_thread *thread) in z_is_thread_pending()
96 static inline bool z_is_thread_prevented_from_running(struct k_thread *thread) in z_is_thread_prevented_from_running()
104 static inline bool z_is_thread_timeout_active(struct k_thread *thread) in z_is_thread_timeout_active()
109 static inline bool z_is_thread_ready(struct k_thread *thread) in z_is_thread_ready()
[all …]
Dpriority_q.h67 static ALWAYS_INLINE void z_priq_dumb_remove(sys_dlist_t *pq, struct k_thread *thread) in z_priq_dumb_remove()
76 struct k_thread *thread = NULL; in z_priq_dumb_best() local
94 static ALWAYS_INLINE void z_priq_rb_add(struct _priq_rb *pq, struct k_thread *thread) in z_priq_rb_add()
117 static ALWAYS_INLINE void z_priq_rb_remove(struct _priq_rb *pq, struct k_thread *thread) in z_priq_rb_remove()
128 struct k_thread *thread = NULL; in z_priq_rb_best() local
139 struct k_thread *thread = NULL; in z_priq_mq_best() local
190 struct k_thread *thread) in z_priq_mq_add()
199 struct k_thread *thread) in z_priq_mq_remove()
218 struct k_thread *thread; in z_priq_dumb_mask_best() local
232 struct k_thread *thread) in z_priq_dumb_add()
Dtimeout_q.h47 static inline void z_add_thread_timeout(struct k_thread *thread, k_timeout_t ticks) in z_add_thread_timeout()
52 static inline int z_abort_thread_timeout(struct k_thread *thread) in z_abort_thread_timeout()
/Zephyr-latest/kernel/
Dsched.c90 static ALWAYS_INLINE void *thread_runq(struct k_thread *thread) in thread_runq()
119 static ALWAYS_INLINE void runq_add(struct k_thread *thread) in runq_add()
126 static ALWAYS_INLINE void runq_remove(struct k_thread *thread) in runq_remove()
141 static inline bool should_queue_thread(struct k_thread *thread) in should_queue_thread()
146 static ALWAYS_INLINE void queue_thread(struct k_thread *thread) in queue_thread()
160 static ALWAYS_INLINE void dequeue_thread(struct k_thread *thread) in dequeue_thread()
174 void z_requeue_current(struct k_thread *thread) in z_requeue_current()
183 static inline bool is_aborting(struct k_thread *thread) in is_aborting()
189 static inline bool is_halting(struct k_thread *thread) in is_halting()
196 static inline void clear_halting(struct k_thread *thread) in clear_halting()
[all …]
Dcpu_mask.c19 static int cpu_mask_mod(k_tid_t thread, uint32_t enable_mask, uint32_t disable_mask) in cpu_mask_mod()
47 int k_thread_cpu_mask_clear(k_tid_t thread) in k_thread_cpu_mask_clear()
52 int k_thread_cpu_mask_enable_all(k_tid_t thread) in k_thread_cpu_mask_enable_all()
57 int k_thread_cpu_mask_enable(k_tid_t thread, int cpu) in k_thread_cpu_mask_enable()
62 int k_thread_cpu_mask_disable(k_tid_t thread, int cpu) in k_thread_cpu_mask_disable()
67 int k_thread_cpu_pin(k_tid_t thread, int cpu) in k_thread_cpu_pin()
Dfloat.c11 int z_impl_k_float_disable(struct k_thread *thread) in z_impl_k_float_disable()
21 int z_impl_k_float_enable(struct k_thread *thread, unsigned int options) in z_impl_k_float_enable()
33 static inline int z_vrfy_k_float_disable(struct k_thread *thread) in z_vrfy_k_float_disable()
40 static inline int z_vrfy_k_float_enable(struct k_thread *thread, unsigned int options) in z_vrfy_k_float_enable()
Dthread_monitor.c15 void z_thread_monitor_exit(struct k_thread *thread) in z_thread_monitor_exit()
40 struct k_thread *thread; in k_thread_foreach() local
66 struct k_thread *thread; in k_thread_foreach_unlocked() local
91 struct k_thread *thread; in k_thread_foreach_filter_by_cpu() local
121 struct k_thread *thread; in k_thread_foreach_unlocked_filter_by_cpu() local
Dtimeslicing.c25 static inline int slice_time(struct k_thread *thread) in slice_time()
39 bool thread_is_sliceable(struct k_thread *thread) in thread_is_sliceable()
68 void z_reset_time_slice(struct k_thread *thread) in z_reset_time_slice()
90 void k_thread_time_slice_set(struct k_thread *thread, int32_t thread_slice_ticks, in k_thread_time_slice_set()
Dusage.c61 static void sched_thread_update_usage(struct k_thread *thread, uint32_t cycles) in sched_thread_update_usage()
74 void z_sched_usage_start(struct k_thread *thread) in z_sched_usage_start()
173 void z_sched_thread_usage(struct k_thread *thread, in z_sched_thread_usage()
228 int k_thread_runtime_stats_enable(k_tid_t thread) in k_thread_runtime_stats_enable()
249 int k_thread_runtime_stats_disable(k_tid_t thread) in k_thread_runtime_stats_disable()
360 struct k_thread *thread; in z_thread_stats_query() local
373 struct k_thread *thread; in z_thread_stats_reset() local
418 struct k_thread *thread; in z_thread_stats_disable() local
431 struct k_thread *thread; in z_thread_stats_enable() local
Dthread.c124 int z_impl_k_thread_priority_get(k_tid_t thread) in z_impl_k_thread_priority_get()
130 static inline int z_vrfy_k_thread_priority_get(k_tid_t thread) in z_vrfy_k_thread_priority_get()
138 int z_impl_k_thread_name_set(k_tid_t thread, const char *str) in z_impl_k_thread_name_set()
166 static inline int z_vrfy_k_thread_name_set(k_tid_t thread, const char *str) in z_vrfy_k_thread_name_set()
193 const char *k_thread_name_get(k_tid_t thread) in k_thread_name_get()
203 int z_impl_k_thread_name_copy(k_tid_t thread, char *buf, size_t size) in z_impl_k_thread_name_copy()
284 static inline int z_vrfy_k_thread_name_copy(k_tid_t thread, in z_vrfy_k_thread_name_copy()
856 int z_impl_k_thread_stack_space_get(const struct k_thread *thread, in z_impl_k_thread_stack_space_get()
870 int z_vrfy_k_thread_stack_space_get(const struct k_thread *thread, in z_vrfy_k_thread_stack_space_get()
899 const struct k_thread *thread) in z_vrfy_k_thread_timeout_remaining_ticks()
[all …]
Dmem_domain.c260 k_tid_t thread) in add_thread_locked()
279 static int remove_thread_locked(struct k_thread *thread) in remove_thread_locked()
296 void z_mem_domain_init_thread(struct k_thread *thread) in z_mem_domain_init_thread()
310 void z_mem_domain_exit_thread(struct k_thread *thread) in z_mem_domain_exit_thread()
323 int k_mem_domain_add_thread(struct k_mem_domain *domain, k_tid_t thread) in k_mem_domain_add_thread()
/Zephyr-latest/arch/posix/core/
Dthread.c32 void arch_new_thread(struct k_thread *thread, k_thread_stack_t *stack, in arch_new_thread()
58 int arch_thread_name_set(struct k_thread *thread, const char *str) in arch_thread_name_set()
100 int arch_float_disable(struct k_thread *thread) in arch_float_disable()
108 int arch_float_enable(struct k_thread *thread, unsigned int options) in arch_float_enable()
119 void z_impl_k_thread_abort(k_tid_t thread) in z_impl_k_thread_abort()
/Zephyr-latest/arch/x86/core/ia32/
Dfloat.c131 static void FpCtxSave(struct k_thread *thread) in FpCtxSave()
148 static inline void FpCtxInit(struct k_thread *thread) in FpCtxInit()
167 void z_float_enable(struct k_thread *thread, unsigned int options) in z_float_enable()
269 int z_float_disable(struct k_thread *thread) in z_float_disable()
/Zephyr-latest/arch/x86/core/intel64/
Dthread.c28 void arch_new_thread(struct k_thread *thread, k_thread_stack_t *stack, in arch_new_thread()
70 int arch_float_disable(struct k_thread *thread) in arch_float_disable()
78 int arch_float_enable(struct k_thread *thread, unsigned int options) in arch_float_enable()
/Zephyr-latest/arch/xtensa/core/
Dthread.c38 static void *init_stack(struct k_thread *thread, int *stack_top, in init_stack()
128 void arch_new_thread(struct k_thread *thread, k_thread_stack_t *stack, in arch_new_thread()
142 int arch_float_disable(struct k_thread *thread) in arch_float_disable()
148 int arch_float_enable(struct k_thread *thread, unsigned int options) in arch_float_enable()
175 int arch_thread_priv_stack_space_get(const struct k_thread *thread, size_t *stack_size, in arch_thread_priv_stack_space_get()
/Zephyr-latest/arch/arm/core/cortex_a_r/
Dthread.c52 void arch_new_thread(struct k_thread *thread, k_thread_stack_t *stack, in arch_new_thread()
145 static inline void z_arm_thread_stack_info_adjust(struct k_thread *thread, in z_arm_thread_stack_info_adjust()
307 const struct k_thread *thread = arch_current_thread(); in z_check_thread_stack_fail() local
378 int arch_float_disable(struct k_thread *thread) in arch_float_disable()
410 int arch_float_enable(struct k_thread *thread, unsigned int options) in arch_float_enable()
/Zephyr-latest/arch/arc/core/
Dthread.c50 static bool is_user(struct k_thread *thread) in is_user()
57 static void setup_stack_vars(struct k_thread *thread) in setup_stack_vars()
97 static struct init_stack_frame *get_iframe(struct k_thread *thread, in get_iframe()
125 static inline void arch_setup_callee_saved_regs(struct k_thread *thread, in arch_setup_callee_saved_regs()
153 void arch_new_thread(struct k_thread *thread, k_thread_stack_t *stack, in arch_new_thread()
245 int arch_float_disable(struct k_thread *thread) in arch_float_disable()
262 int arch_float_enable(struct k_thread *thread, unsigned int options) in arch_float_enable()
306 void arc_dsp_disable(struct k_thread *thread, unsigned int options) in arc_dsp_disable()
317 void arc_dsp_enable(struct k_thread *thread, unsigned int options) in arc_dsp_enable()
/Zephyr-latest/subsys/shell/modules/kernel_service/thread/
Dmask.c16 struct k_thread *thread; in cmd_kernel_thread_mask_clear() local
45 struct k_thread *thread; in cmd_kernel_thread_mask_enable_all() local
74 struct k_thread *thread; in cmd_kernel_thread_mask_enable() local
109 struct k_thread *thread; in cmd_kernel_thread_mask_disable() local
Dthread.c16 const struct k_thread *const thread; member
29 bool z_thread_is_valid(const struct k_thread *thread) in z_thread_is_valid()
/Zephyr-latest/arch/arm/core/cortex_m/
Dthread.c61 void arch_new_thread(struct k_thread *thread, k_thread_stack_t *stack, in arch_new_thread()
137 static inline void z_arm_thread_stack_info_adjust(struct k_thread *thread, in z_arm_thread_stack_info_adjust()
190 uint32_t z_arm_mpu_stack_guard_and_fpu_adjust(struct k_thread *thread) in z_arm_mpu_stack_guard_and_fpu_adjust()
295 void configure_builtin_stack_guard(struct k_thread *thread) in configure_builtin_stack_guard()
382 const struct k_thread *thread = arch_current_thread(); in z_check_thread_stack_fail() local
453 int arch_float_disable(struct k_thread *thread) in arch_float_disable()
485 int arch_float_enable(struct k_thread *thread, unsigned int options) in arch_float_enable()
/Zephyr-latest/arch/sparc/core/
Dthread.c31 void arch_new_thread(struct k_thread *thread, k_thread_stack_t *stack, in arch_new_thread()
70 int arch_float_disable(struct k_thread *thread) in arch_float_disable()
75 int arch_float_enable(struct k_thread *thread, unsigned int options) in arch_float_enable()
/Zephyr-latest/subsys/tracing/sysview/
Dsysview_config.c20 static void set_thread_name(char *name, struct k_thread *thread) in set_thread_name()
33 void sys_trace_thread_info(struct k_thread *thread) in sys_trace_thread_info()
60 struct k_thread *thread; in send_task_list_cb() local
/Zephyr-latest/subsys/tracing/test/
Dtracing_string_format_test.c16 struct k_thread *thread; in sys_trace_k_thread_switched_out() local
24 struct k_thread *thread; in sys_trace_k_thread_switched_in() local
30 void sys_trace_k_thread_priority_set(struct k_thread *thread) in sys_trace_k_thread_priority_set()
35 void sys_trace_k_thread_create(struct k_thread *thread, size_t stack_size, in sys_trace_k_thread_create()
41 void sys_trace_k_thread_start(struct k_thread *thread) in sys_trace_k_thread_start()
46 void sys_trace_k_thread_abort(struct k_thread *thread) in sys_trace_k_thread_abort()
51 void sys_trace_k_thread_suspend(struct k_thread *thread) in sys_trace_k_thread_suspend()
56 void sys_trace_k_thread_resume(struct k_thread *thread) in sys_trace_k_thread_resume()
61 void sys_trace_k_thread_resume_exit(struct k_thread *thread) in sys_trace_k_thread_resume_exit()
66 void sys_trace_k_thread_ready(struct k_thread *thread) in sys_trace_k_thread_ready()
[all …]
/Zephyr-latest/arch/riscv/core/
Dstacktrace.c38 static inline bool in_kernel_thread_stack_bound(uintptr_t addr, const struct k_thread *const thread) in in_kernel_thread_stack_bound()
56 static inline bool in_user_thread_stack_bound(uintptr_t addr, const struct k_thread *const thread) in in_user_thread_stack_bound()
73 static bool in_stack_bound(uintptr_t addr, const struct k_thread *const thread, in in_stack_bound()
99 static void walk_stackframe(riscv_stacktrace_cb cb, void *cookie, const struct k_thread *thread, in walk_stackframe()
172 static void walk_stackframe(riscv_stacktrace_cb cb, void *cookie, const struct k_thread *thread, in walk_stackframe()
215 const struct k_thread *thread, const struct arch_esf *esf) in arch_stack_walk()
229 static bool in_fatal_stack_bound(uintptr_t addr, const struct k_thread *const thread, in in_fatal_stack_bound()
/Zephyr-latest/subsys/tracing/user/
Dtracing_user.c12 void __weak sys_trace_thread_create_user(struct k_thread *thread) {} in sys_trace_thread_create_user()
13 void __weak sys_trace_thread_abort_user(struct k_thread *thread) {} in sys_trace_thread_abort_user()
14 void __weak sys_trace_thread_suspend_user(struct k_thread *thread) {} in sys_trace_thread_suspend_user()
15 void __weak sys_trace_thread_resume_user(struct k_thread *thread) {} in sys_trace_thread_resume_user()
16 void __weak sys_trace_thread_name_set_user(struct k_thread *thread) {} in sys_trace_thread_name_set_user()
19 void __weak sys_trace_thread_info_user(struct k_thread *thread) {} in sys_trace_thread_info_user()
20 void __weak sys_trace_thread_sched_ready_user(struct k_thread *thread) {} in sys_trace_thread_sched_ready_user()
21 void __weak sys_trace_thread_pend_user(struct k_thread *thread) {} in sys_trace_thread_pend_user()
22 void __weak sys_trace_thread_priority_set_user(struct k_thread *thread, int prio) {} in sys_trace_thread_priority_set_user()
78 void sys_trace_thread_create(struct k_thread *thread) in sys_trace_thread_create()
[all …]

12345678910