| /kernel/include/kernel/ |
| A D | thread.h | 214 } thread_t; typedef 244 thread_t* thread_create_etc(thread_t* t, const char* name, thread_start_routine entry, void* arg, 246 void thread_resume(thread_t*); 247 zx_status_t thread_suspend(thread_t*); 250 void thread_forget(thread_t*); 259 zx_status_t thread_detach(thread_t* t); 262 zx_status_t thread_set_real_time(thread_t* t); 312 void thread_kill(thread_t* t); 323 void arch_dump_thread(thread_t* t); 364 thread_t* get_current_thread(void); [all …]
|
| A D | sched.h | 20 void sched_init_thread(thread_t* t, int priority); 26 void sched_unblock_idle(thread_t* t) TA_REQ(thread_lock); 27 void sched_migrate(thread_t* t) TA_REQ(thread_lock); 31 void sched_inherit_priority(thread_t* t, int pri, bool* local_resched) TA_REQ(thread_lock); 35 void sched_change_priority(thread_t* t, int pri) TA_REQ(thread_lock); 39 bool sched_unblock(thread_t* t) __WARN_UNUSED_RESULT TA_REQ(thread_lock);
|
| A D | interrupt.h | 20 thread_t* current_thread = get_current_thread(); in int_handler_start() 34 thread_t* current_thread = get_current_thread(); in int_handler_finish()
|
| A D | percpu.h | 43 thread_t idle_thread; 54 thread_t* dpc_thread;
|
| A D | mutex.h | 41 static inline thread_t* mutex_holder(const mutex_t* m) { in mutex_holder() 43 return (thread_t*)(mutex_val(m) & ~MUTEX_FLAG_QUEUED); in mutex_holder()
|
| /kernel/kernel/ |
| A D | wait.cpp | 68 thread_t* last = NULL; in wait_queue_validate_queue() 69 thread_t* temp; in wait_queue_validate_queue() 82 thread_t* temp2; in wait_queue_validate_queue() 105 thread_t* temp; in wait_queue_insert() 136 thread_t* newhead = list_peek_head_type(&t->queue_node, thread_t, queue_node); in remove_queue_head() 146 thread_t* t = NULL; in wait_queue_pop_head() 171 thread_t* t = list_peek_head_type(&wait->heads, thread_t, wait_queue_heads_node); in wait_queue_blocked_priority() 186 thread_t* thread = (thread_t*)arg; in wait_queue_timeout_handler() 316 thread_t* t; in wait_queue_wake_one() 350 thread_t* t; in wait_queue_dequeue_one() [all …]
|
| A D | thread.cpp | 87 memset(t, 0, sizeof(thread_t)); in init_thread_struct() 149 thread_t* thread_create_etc( in thread_create_etc() 150 thread_t* t, in thread_create_etc() 158 t = static_cast<thread_t*>(malloc(sizeof(thread_t))); in thread_create_etc() 468 thread_t* t = (thread_t*)dpc->arg; in thread_free_dpc() 562 void thread_kill(thread_t* t) { in thread_kill() 828 thread_t* t = (thread_t*)arg; in thread_sleep_handler() 1251 thread_t* t; in dump_all_threads_locked() 1274 thread_t* t; in dump_thread_user_tid_locked() 1291 thread_t* t; in thread_id_to_thread_slow() [all …]
|
| A D | sched.cpp | 59 static void compute_effec_priority(thread_t* t) { in compute_effec_priority() 71 static void boost_thread(thread_t* t) { in boost_thread() 264 … thread_t* newthread = list_remove_head_type(&c->run_queue[highest_queue], thread_t, queue_node); in sched_get_top_thread() 285 void sched_init_thread(thread_t* t, int priority) { in sched_init_thread() 331 bool sched_unblock(thread_t* t) { in sched_unblock() 363 thread_t* t; in sched_unblock_list() 384 void sched_unblock_idle(thread_t* t) { in sched_unblock_idle() 517 thread_t* t; in sched_transition_off_cpu() 560 void sched_migrate(thread_t* t) { in sched_migrate() 698 void sched_change_priority(thread_t* t, int pri) { in sched_change_priority() [all …]
|
| A D | mutex.cpp | 51 thread_t* holder = mutex_holder(m); in mutex_destroy() 70 thread_t* ct = get_current_thread(); in mutex_acquire() 129 thread_t* ct = get_current_thread(); in mutex_release_internal() 165 thread_t* holder = mutex_holder(m); in mutex_release_internal() 180 thread_t* t = wait_queue_dequeue_one(&m->wait, ZX_OK); in mutex_release_internal()
|
| A D | debug.cpp | 68 thread_t* t = NULL; in cmd_thread() 70 t = (thread_t*)argv[2].u; in cmd_thread() 82 thread_t* t = NULL; in cmd_thread() 84 t = (thread_t*)argv[2].u; in cmd_thread()
|
| /kernel/arch/x86/ |
| A D | thread.cpp | 24 void arch_thread_initialize(thread_t* t, vaddr_t entry_point) { in arch_thread_initialize() 77 void arch_thread_construct_first(thread_t* t) { in arch_thread_construct_first() 80 void arch_dump_thread(thread_t* t) { in arch_dump_thread() 97 void arch_context_switch(thread_t* oldthread, thread_t* newthread) { in arch_context_switch() 168 void x86_debug_state_context_switch(thread_t *old_thread, thread_t *new_thread) { in x86_debug_state_context_switch()
|
| A D | smp.cpp | 37 static void free_stack_and_thread(thread_t* t) { in free_stack_and_thread() 83 thread_t* thread = static_cast<thread_t*>(calloc(1, sizeof(thread_t))); in x86_bringup_aps()
|
| A D | user_copy.cpp | 71 thread_t* thr = get_current_thread(); in arch_copy_from_user() 85 thread_t* thr = get_current_thread(); in arch_copy_to_user()
|
| /kernel/tests/ |
| A D | preempt_disable_tests.cpp | 25 thread_t* thread = get_current_thread(); in timer_callback_func() 78 thread_t* thread = get_current_thread(); in test_inc_dec_disable_counts() 120 thread_t* thread = get_current_thread(); in test_decrement_clears_preempt_pending() 148 thread_t* thread = get_current_thread(); in test_blocking_clears_preempt_pending() 181 thread_t* thread = get_current_thread(); in test_interrupt_preserves_preempt_pending() 209 thread_t* thread = get_current_thread(); in test_interrupt_clears_preempt_pending() 234 thread_t* thread = get_current_thread(); in test_interrupt_with_preempt_disable() 263 thread_t* thread = get_current_thread(); in test_interrupt_with_resched_disable()
|
| A D | thread_tests.cpp | 92 thread_t* threads[5]; in mutex_test() 221 thread_t* threads[5]; in event_test() 369 thread_t* threads[8]; in atomic_test() 455 thread_t* t; in join_tester_server() 501 thread_t* t; in join_test() 621 thread_t* t; in kill_tests() 687 thread_t* threads[16] = {}; 701 thread_t* t = get_current_thread(); in affinity_test_thread() 812 thread_t* t = get_current_thread(); in prio_test_thread() 844 thread_t* t = get_current_thread(); in priority_test() [all …]
|
| A D | fibo.cpp | 21 thread_t* t[2]; in fibo_thread() 64 … thread_t* t = thread_create("fibo", &fibo_thread, (void*)(uintptr_t)argv[1].u, DEFAULT_PRIORITY); in fibo()
|
| /kernel/arch/arm64/ |
| A D | thread.cpp | 43 void arch_thread_initialize(thread_t* t, vaddr_t entry_point) { in arch_thread_initialize() 79 __NO_SAFESTACK void arch_thread_construct_first(thread_t* t) { in arch_thread_construct_first() 83 thread_t* fake = get_current_thread(); in arch_thread_construct_first() 100 __NO_SAFESTACK void arch_context_switch(thread_t* oldthread, in arch_context_switch() 101 thread_t* newthread) { in arch_context_switch() 115 void arch_dump_thread(thread_t* t) { in arch_dump_thread()
|
| /kernel/lib/hypervisor/include/hypervisor/ |
| A D | cpu.h | 25 thread_t* pin_thread(uint16_t vpid); 28 bool check_pinned_cpu_invariant(uint16_t vpid, const thread_t* thread);
|
| /kernel/lib/hypervisor/ |
| A D | cpu.cpp | 47 thread_t* pin_thread(uint16_t vpid) { in pin_thread() 48 thread_t* thread = get_current_thread(); in pin_thread() 53 bool check_pinned_cpu_invariant(uint16_t vpid, const thread_t* thread) { in check_pinned_cpu_invariant()
|
| /kernel/arch/x86/include/arch/x86/ |
| A D | registers.h | 257 typedef struct thread thread_t; typedef 259 thread_t *old_thread, thread_t *new_thread); 351 void x86_debug_state_context_switch(thread_t* old_thread, thread_t* new_thread);
|
| /kernel/top/ |
| A D | main.cpp | 90 thread_t* t = thread_create("bootstrap2", &bootstrap2, NULL, DEFAULT_PRIORITY); in lk_main() 144 thread_t* t = thread_create_idle_thread(i + 1); in lk_init_secondary_cpus()
|
| /kernel/lib/oom/ |
| A D | oom.cpp | 33 static thread_t* oom_thread TA_GUARDED(oom_mutex); 122 thread_t* t = thread_create("oom", oom_loop, nullptr, HIGH_PRIORITY); in start_thread_locked() 176 thread_t* t = oom_thread; in cmd_oom()
|
| /kernel/arch/x86/include/arch/ |
| A D | hypervisor.h | 101 const thread_t* thread_; 110 Vcpu(Guest* guest, uint16_t vpid, const thread_t* thread);
|
| /kernel/object/ |
| A D | semaphore.cpp | 29 thread_t *current_thread = get_current_thread(); in Wait()
|
| /kernel/arch/arm64/include/arch/ |
| A D | hypervisor.h | 117 const thread_t* thread_; 123 Vcpu(Guest* guest, uint8_t vpid, const thread_t* thread);
|