/Zephyr-latest/subsys/portability/cmsis_rtos_v2/ |
D | thread.c | 66 void *is_cmsis_rtos_v2_thread(void *thread_id) in is_cmsis_rtos_v2_thread() argument 74 if ((void *)itr == thread_id) { in is_cmsis_rtos_v2_thread() 220 const char *osThreadGetName(osThreadId_t thread_id) in osThreadGetName() argument 224 if (k_is_in_isr() || (thread_id == NULL)) { in osThreadGetName() 227 if (is_cmsis_rtos_v2_thread(thread_id) == NULL) { in osThreadGetName() 231 (struct cv2_thread *)thread_id; in osThreadGetName() 253 osPriority_t osThreadGetPriority(osThreadId_t thread_id) in osThreadGetPriority() argument 255 struct cv2_thread *tid = (struct cv2_thread *)thread_id; in osThreadGetPriority() 271 osStatus_t osThreadSetPriority(osThreadId_t thread_id, osPriority_t priority) in osThreadSetPriority() argument 273 struct cv2_thread *tid = (struct cv2_thread *)thread_id; in osThreadSetPriority() [all …]
|
D | thread_flags.c | 15 uint32_t osThreadFlagsSet(osThreadId_t thread_id, uint32_t flags) in osThreadFlagsSet() argument 18 struct cv2_thread *tid = (struct cv2_thread *)thread_id; in osThreadFlagsSet() 20 if ((thread_id == NULL) || (is_cmsis_rtos_v2_thread(thread_id) == NULL) in osThreadFlagsSet()
|
D | wrapper.h | 74 extern void *is_cmsis_rtos_v2_thread(void *thread_id);
|
/Zephyr-latest/subsys/portability/cmsis_rtos_v1/ |
D | cmsis_thread.c | 152 osPriority osThreadGetPriority(osThreadId thread_id) in osThreadGetPriority() argument 154 k_tid_t thread = (k_tid_t)thread_id; in osThreadGetPriority() 157 if ((thread_id == NULL) || (k_is_in_isr())) { in osThreadGetPriority() 168 osStatus osThreadSetPriority(osThreadId thread_id, osPriority priority) in osThreadSetPriority() argument 170 if (thread_id == NULL) { in osThreadSetPriority() 182 if (_is_thread_cmsis_inactive((k_tid_t)thread_id)) { in osThreadSetPriority() 186 k_thread_priority_set((k_tid_t)thread_id, in osThreadSetPriority() 195 osStatus osThreadTerminate(osThreadId thread_id) in osThreadTerminate() argument 197 if (thread_id == NULL) { in osThreadTerminate() 205 if (_is_thread_cmsis_inactive((k_tid_t)thread_id)) { in osThreadTerminate() [all …]
|
D | cmsis_signal.c | 12 void *k_thread_other_custom_data_get(struct k_thread *thread_id) in k_thread_other_custom_data_get() argument 14 return thread_id->custom_data; in k_thread_other_custom_data_get() 20 int32_t osSignalSet(osThreadId thread_id, int32_t signals) in osSignalSet() argument 24 if ((thread_id == NULL) || (!signals) || in osSignalSet() 31 (struct k_thread *)thread_id); in osSignalSet() 46 int32_t osSignalClear(osThreadId thread_id, int32_t signals) in osSignalClear() argument 50 if (k_is_in_isr() || (thread_id == NULL) || (!signals) || in osSignalClear() 57 (struct k_thread *)thread_id); in osSignalClear()
|
D | cmsis_msgq.c | 14 osThreadId thread_id) in osMessageCreate() argument
|
/Zephyr-latest/subsys/tracing/ctf/ |
D | ctf_top.h | 195 static inline void ctf_top_thread_switched_out(uint32_t thread_id, in ctf_top_thread_switched_out() argument 199 thread_id, name); in ctf_top_thread_switched_out() 202 static inline void ctf_top_thread_switched_in(uint32_t thread_id, in ctf_top_thread_switched_in() argument 205 CTF_EVENT(CTF_LITERAL(uint8_t, CTF_EVENT_THREAD_SWITCHED_IN), thread_id, in ctf_top_thread_switched_in() 209 static inline void ctf_top_thread_priority_set(uint32_t thread_id, int8_t prio, in ctf_top_thread_priority_set() argument 213 thread_id, name, prio); in ctf_top_thread_priority_set() 216 static inline void ctf_top_thread_create(uint32_t thread_id, int8_t prio, in ctf_top_thread_create() argument 219 CTF_EVENT(CTF_LITERAL(uint8_t, CTF_EVENT_THREAD_CREATE), thread_id, in ctf_top_thread_create() 223 static inline void ctf_top_thread_abort(uint32_t thread_id, in ctf_top_thread_abort() argument 226 CTF_EVENT(CTF_LITERAL(uint8_t, CTF_EVENT_THREAD_ABORT), thread_id, in ctf_top_thread_abort() [all …]
|
/Zephyr-latest/tests/kernel/sched/wraparound/src/ |
D | main.c | 9 static k_tid_t thread_id; variable 13 k_wakeup(thread_id); in alarm_callback() 30 thread_id = k_current_get(); in ZTEST()
|
/Zephyr-latest/tests/subsys/portability/cmsis_rtos_v1/src/ |
D | signal.c | 39 void test_multiple_signal_flags(void const *thread_id) in test_multiple_signal_flags() argument 48 signals = osSignalSet((osThreadId)thread_id, signal_each_flag); in test_multiple_signal_flags() 53 signals = osSignalClear((osThreadId)thread_id, SIGNAL_ALL_FLAGS); in test_multiple_signal_flags() 57 signals = osSignalSet((osThreadId)thread_id, SIGNAL_ALL_FLAGS); in test_multiple_signal_flags() 61 signals = osSignalClear((osThreadId)thread_id, SIGNAL_ALL_FLAGS); in test_multiple_signal_flags() 65 signals = osSignalSet((osThreadId)thread_id, SIGNAL_OUTOFLIMIT_FLAG); in test_multiple_signal_flags() 176 void test_signal_from_isr(void const *thread_id) in test_signal_from_isr() argument 179 irq_offload(offload_function, (const void *)thread_id); in test_signal_from_isr()
|
/Zephyr-latest/tests/benchmarks/thread_metric/src/ |
D | tm_porting_layer_zephyr.c | 64 int tm_thread_create(int thread_id, int priority, void (*entry_function)(void *, void *, void *)) in tm_thread_create() argument 68 tid = k_thread_create(&test_thread[thread_id], test_stack[thread_id], in tm_thread_create() 74 k_thread_suspend(&test_thread[thread_id]); in tm_thread_create() 75 k_wakeup(&test_thread[thread_id]); in tm_thread_create() 77 return (tid == &test_thread[thread_id]) ? TM_SUCCESS : TM_ERROR; in tm_thread_create() 84 int tm_thread_resume(int thread_id) in tm_thread_resume() argument 86 k_thread_resume(&test_thread[thread_id]); in tm_thread_resume() 95 int tm_thread_suspend(int thread_id) in tm_thread_suspend() argument 97 k_thread_suspend(&test_thread[thread_id]); in tm_thread_suspend()
|
D | tm_api.h | 80 int tm_thread_create(int thread_id, int priority, void (*entry_function)(void *, void *, void *)); 81 int tm_thread_resume(int thread_id); 82 int tm_thread_suspend(int thread_id);
|
/Zephyr-latest/scripts/tracing/ |
D | parse_ctf.py | 83 thread_id = event.payload_field.get("thread_id", None) 94 elif thread_id: 95 print(f"{dt} (+{diff_s:.6f} s): {event.name}: {thread_id} {cpu_string}") 105 th = get_thread(thread_id) 107 th['name'] = thread_id
|
/Zephyr-latest/subsys/tracing/ctf/tsdl/ |
D | metadata | 29 uint32_t thread_id; 38 uint32_t thread_id; 47 uint32_t thread_id; 58 uint32_t thread_id; 67 uint32_t thread_id; 76 uint32_t thread_id; 85 uint32_t thread_id; 93 uint32_t thread_id; 102 uint32_t thread_id; 111 uint32_t thread_id; [all …]
|
/Zephyr-latest/tests/lib/multi_heap/src/ |
D | test_mheap_concept.c | 56 int thread_id = POINTER_TO_INT(p1); in tmheap_handler() local 58 pool_blocks[thread_id] = k_malloc(BLOCK_SIZE); in tmheap_handler() 60 zassert_not_null(pool_blocks[thread_id], "memory is not allocated"); in tmheap_handler()
|
/Zephyr-latest/include/zephyr/portability/ |
D | cmsis_os2.h | 371 /* / \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. */ 373 const char *osThreadGetName(osThreadId_t thread_id); 380 /* / \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. */ 382 osThreadState_t osThreadGetState(osThreadId_t thread_id); 385 /* / \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. */ 387 uint32_t osThreadGetStackSize(osThreadId_t thread_id); 390 /* / \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. */ 392 uint32_t osThreadGetStackSpace(osThreadId_t thread_id); 395 /* / \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. */ 398 osStatus_t osThreadSetPriority(osThreadId_t thread_id, osPriority_t priority); [all …]
|
D | cmsis_os.h | 321 /// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. 324 osStatus osThreadTerminate (osThreadId thread_id); 332 /// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. 336 osStatus osThreadSetPriority (osThreadId thread_id, osPriority priority); 339 /// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. 342 osPriority osThreadGetPriority (osThreadId thread_id); 416 /// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. 420 int32_t osSignalSet (osThreadId thread_id, int32_t signals); 423 /// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. 427 int32_t osSignalClear (osThreadId thread_id, int32_t signals); [all …]
|
/Zephyr-latest/tests/benchmarks/thread_metric/ |
D | thread_metric_readme.txt | 144 int tm_thread_create(int thread_id, int priority, void (*entry_function)(void)); 151 int tm_thread_resume(int thread_id); 154 thread_id. If successful, a TM_SUCCESS is returned. 156 int tm_thread_suspend(int thread_id); 159 thread_id. If successful, a TM_SUCCESS is returned.
|
/Zephyr-latest/tests/subsys/logging/log_output/ |
D | testcase.yaml | 54 logging.output.thread_id:
|
/Zephyr-latest/tests/subsys/portability/cmsis_rtos_v2/src/ |
D | thread_apis.c | 41 osThreadId_t thread_id; in thread1() local 45 thread_id = osThreadGetId(); in thread1() 46 zassert_true(thread_id != NULL, "Failed getting Thread ID"); in thread1() 48 name = osThreadGetName(thread_id); in thread1()
|
/Zephyr-latest/samples/subsys/edac/src/ |
D | main.c | 63 K_THREAD_DEFINE(thread_id, STACKSIZE, thread_function, NULL, NULL, NULL,
|
/Zephyr-latest/scripts/coredump/gdbstubs/ |
D | gdbstub.py | 238 thread_id = int(thread_index_str, 16) 239 if len(self.thread_ptrs) > thread_id: 241 thread_ptr = self.thread_ptrs[thread_id - 1]
|
/Zephyr-latest/doc/services/portability/ |
D | cmsis_rtos_v2.rst | 80 thread_id is not active to receive flags) are not supported.
|
/Zephyr-latest/doc/services/tracing/ |
D | index.rst | 88 static inline void ctf_top_foo(uint32_t thread_id, ctf_bounded_string_t name) 92 thread_id, 603 ``emit(a,thread_id); emit(b,thread_id); emit(c,thread_id);`` 615 ``emit(a ## b ## c, thread_id);``
|
/Zephyr-latest/tests/kernel/smp/src/ |
D | main.c | 628 * into a variable thread_id. 629 * -# Spawn a thread t2, and pass the stored thread_id to it, then call 654 k_tid_t thread_id; in ZTEST() local 667 thread_id = k_thread_create(&t2, t2_stack, T2_STACK_SIZE, in ZTEST() 675 k_thread_abort(thread_id); in ZTEST() 676 k_thread_join(thread_id, K_FOREVER); in ZTEST()
|
/Zephyr-latest/include/zephyr/sys/internal/ |
D | kobject_internal.h | 37 unsigned int thread_id; member
|