| /xnu-8020.101.4/osfmk/kern/ |
| H A D | thread.h | 248 struct thread { struct 252 uint64_t thread_magic; argument 270 struct mpsc_queue_chain mpsc_links; /* thread daemon mpsc links */ argument 276 waitq_t waitq; /* wait queue this thread is enqueued on */ argument 277 struct turnstile *turnstile; /* thread's turnstile, protected by primitives interlock */ argument 278 void *inheritor; /* inheritor of the primitive the thread will block on */ argument 292 * level (clutch_bucket defines a unique thread group and scheduling bucket pair). The argument 306 decl_simple_lock_data(, wake_lock); /* for thread stop / wait (wake_lock()) */ argument 307 uint16_t options; /* options set by thread itself */ argument 322 bool at_safe_point; /* thread_abort_safely allowed */ argument [all …]
|
| H A D | thread_act.c | 95 thread_t thread) in thread_start() 118 thread_t thread, in thread_start_in_assert_wait() 164 thread_t thread) in thread_terminate_internal() 202 thread_t thread) in thread_terminate() 243 thread_t thread) in thread_terminate_from_user() 263 thread_t thread) in thread_terminate_pinned() 295 thread_hold(thread_t thread) in thread_hold() 313 thread_release(thread_t thread) in thread_release() 333 thread_suspend(thread_t thread) in thread_suspend() 361 thread_resume(thread_t thread) in thread_resume() [all …]
|
| H A D | thread.c | 298 init_thread_from_template(thread_t thread) in init_thread_from_template() 402 thread_is_active(thread_t thread) in thread_is_active() 410 thread_t thread = current_thread(); in thread_corpse_continue() local 440 thread_t thread = current_thread(); in thread_terminate_self() local 688 thread_ref_release(thread_t thread) in thread_ref_release() 701 thread_deallocate_safe(thread_t thread) in thread_deallocate_safe() 710 thread_deallocate(thread_t thread) in thread_deallocate() 719 thread_t thread) in thread_deallocate_complete() 837 thread_t thread; in thread_exception_queue_invoke() local 872 thread_t thread, in thread_exception_enqueue() [all …]
|
| H A D | priority.c | 104 thread_t thread = p1; in thread_quantum_expire() local 279 sched_set_thread_base_priority(thread_t thread, int priority) in sched_set_thread_base_priority() 335 sched_set_kernel_thread_priority(thread_t thread, int new_priority) in sched_set_kernel_thread_priority() 377 thread_recompute_sched_pri(thread_t thread, set_sched_pri_options_t options) in thread_recompute_sched_pri() 460 lightweight_update_priority(thread_t thread) in lightweight_update_priority() 558 sched_compute_timeshare_priority(thread_t thread) in sched_compute_timeshare_priority() 596 sched_compute_timeshare_priority(thread_t thread) in sched_compute_timeshare_priority() 625 thread_t thread) in can_update_priority() 643 thread_t thread) in update_priority() 787 sched_run_incr(thread_t thread) in sched_run_incr() [all …]
|
| H A D | thread_policy.c | 155 thread_has_qos_policy(thread_t thread) in thread_has_qos_policy() 162 thread_remove_qos_policy_locked(thread_t thread, in thread_remove_qos_policy_locked() 174 thread_remove_qos_policy(thread_t thread) in thread_remove_qos_policy() 195 thread_is_static_param(thread_t thread) in thread_is_static_param() 264 thread_t thread, in thread_policy_set() 330 thread_t thread, in thread_policy_set_internal() 624 thread_set_mode_and_absolute_pri_internal(thread_t thread, in thread_set_mode_and_absolute_pri_internal() 689 thread_freeze_base_pri(thread_t thread) in thread_freeze_base_pri() 704 thread_unfreeze_base_pri(thread_t thread) in thread_unfreeze_base_pri() 765 thread_reset_workq_qos(thread_t thread, uint32_t qos) in thread_reset_workq_qos() [all …]
|
| H A D | kpc_thread.c | 123 kpc_update_thread_counters( thread_t thread ) in kpc_update_thread_counters() 158 thread_t thread = current_thread(); in kpc_get_curthread_counters() local 193 kpc_off_cpu_internal(thread_t thread) in kpc_off_cpu_internal() 201 kpc_thread_create(thread_t thread) in kpc_thread_create() 213 kpc_thread_destroy(thread_t thread) in kpc_thread_destroy() 229 kpc_thread_ast_handler(thread_t thread) in kpc_thread_ast_handler()
|
| H A D | sched_traditional.c | 290 thread_t thread) in runq_consider_incr_bound_count() 308 thread_t thread) in runq_consider_decr_bound_count() 329 thread_t thread; in sched_traditional_choose_thread() local 358 thread_t thread; in sched_traditional_choose_thread_from_runq() local 411 thread_t thread, in sched_traditional_processor_enqueue() 538 thread_t thread; in sched_traditional_processor_queue_shutdown() local 617 thread_t thread) in sched_traditional_processor_queue_remove() 664 thread_t thread; in sched_traditional_steal_processor_thread() local 716 thread_t thread; in sched_traditional_steal_thread() local 754 thread_t thread; in sched_traditional_thread_update_scan() local
|
| H A D | sched_amp.c | 189 amp_runq_for_thread(processor_t processor, thread_t thread) in amp_runq_for_thread() 273 thread_t thread, in sched_amp_processor_enqueue() 297 sched_amp_thread_should_yield(processor_t processor, thread_t thread) in sched_amp_thread_should_yield() 418 thread_t thread; in sched_amp_processor_queue_shutdown() local 450 thread_t thread) in sched_amp_processor_queue_remove() 486 thread_t thread = THREAD_NULL; in sched_amp_steal_thread() local 534 thread_t thread; in sched_amp_thread_update_scan() local 609 pcores_recommended(thread_t thread) in pcores_recommended() 634 sched_amp_thread_avoid_processor(processor_t processor, thread_t thread) in sched_amp_thread_avoid_processor() 650 sched_amp_choose_processor(processor_set_t pset, processor_t processor, thread_t thread) in sched_amp_choose_processor() [all …]
|
| H A D | sched_multiq.c | 521 thread_t thread = cqe_queue_first(queue, struct thread, runq_links); in group_first_thread() local 557 sched_group_check_thread(sched_group_t group, thread_t thread) in sched_group_check_thread() 589 thread_t thread = group_first_thread(group); in global_check_entry_queue() local 606 thread_t thread = group_first_thread(group); in group_check_run_queue() local 756 thread_t thread; in group_run_queue_dequeue_thread() local 790 thread_t thread, in group_run_queue_enqueue_thread() 831 thread_t thread, in group_run_queue_remove_thread() 871 thread_t thread; in sched_global_dequeue_thread() local 900 thread_t thread; in sched_global_deep_drain_dequeue_thread() local 930 thread_t thread; in sched_group_dequeue_thread() local [all …]
|
| H A D | sched_grrr.c | 340 sched_grrr_compute_priority(thread_t thread) in sched_grrr_compute_priority() 348 thread_t thread) in sched_grrr_choose_processor() 356 thread_t thread, in sched_grrr_processor_enqueue() 374 thread_t thread; in sched_grrr_processor_queue_shutdown() local 406 thread_t thread) in sched_grrr_processor_queue_remove() 594 thread_t thread; in grrr_intragroup_schedule() local 620 thread_t thread; in grrr_intergroup_schedule() local 718 thread_t thread) in grrr_enqueue() 761 thread_t thread; in grrr_select() local 803 thread_t thread) in grrr_remove()
|
| H A D | work_interval.c | 195 __unused struct work_interval *work_interval, __unused thread_t thread) in work_interval_perform_deferred_finish() 224 work_interval_auto_join_decrement(struct work_interval *work_interval, thread_t thread) in work_interval_auto_join_decrement() 362 work_interval_should_propagate(thread_t cthread, thread_t thread) in work_interval_should_propagate() 427 work_interval_auto_join_unwind(thread_t thread) in work_interval_auto_join_unwind() 445 work_interval_auto_join_demote(thread_t thread) in work_interval_auto_join_demote() 625 thread_set_work_interval(thread_t thread, in thread_set_work_interval() 749 thread_set_work_interval_explicit_join(thread_t thread, struct work_interval *work_interval) in thread_set_work_interval_explicit_join() 756 work_interval_thread_terminate(thread_t thread) in work_interval_thread_terminate() 766 kern_work_interval_notify(thread_t thread, struct kern_work_interval_args* kwi_args) in kern_work_interval_notify() 808 kern_work_interval_create(thread_t thread, in kern_work_interval_create() [all …]
|
| H A D | lock_rw.c | 309 canlock_rwlock_panic(lck_rw_t* lock, thread_t thread, struct rw_lock_debug_entry *entry) in canlock_rwlock_panic() 317 assert_canlock_rwlock(lck_rw_t* lock, thread_t thread, lck_rw_type_t type) in assert_canlock_rwlock() 347 held_rwlock_notheld_panic(lck_rw_t* lock, thread_t thread) in held_rwlock_notheld_panic() 354 held_rwlock_notheld_with_info_panic(lck_rw_t* lock, thread_t thread, lck_rw_type_t type, struct rw_… in held_rwlock_notheld_with_info_panic() 368 assert_held_rwlock(lck_rw_t* lock, thread_t thread, lck_rw_type_t type) in assert_held_rwlock() 400 change_held_rwlock(lck_rw_t* lock, thread_t thread, lck_rw_type_t typeFrom, void* caller) in change_held_rwlock() 461 add_held_rwlock_too_many_panic(thread_t thread) in add_held_rwlock_too_many_panic() 467 add_held_rwlock(lck_rw_t* lock, thread_t thread, lck_rw_type_t type, void* caller) in add_held_rwlock() 538 remove_held_rwlock(lck_rw_t* lock, thread_t thread, lck_rw_type_t type) in remove_held_rwlock() 610 thread_t thread) in lck_rw_inc_thread_count() [all …]
|
| H A D | sched_prim.c | 190 check_rt_runq_consistency(rt_queue_t rt_run_queue, thread_t thread) in check_rt_runq_consistency() 661 sched_check_spill(processor_set_t pset, thread_t thread) in sched_check_spill() 670 sched_thread_should_yield(processor_t processor, thread_t thread) in sched_thread_should_yield() 780 thread_t thread = p0; in thread_timer_expire() local 810 thread_t thread, in thread_unblock() 973 thread_t thread) in thread_allowed_for_handoff() 1001 thread_t thread, in thread_go() 1048 thread_t thread, in thread_mark_wait_locked() 1132 thread_t thread = current_thread(); in thread_interrupt_level() local 1183 thread_t thread = current_thread(); in assert_wait_timeout() local [all …]
|
| H A D | sched_dualq.c | 172 dualq_runq_for_thread(processor_t processor, thread_t thread) in dualq_runq_for_thread() 290 thread_t thread, in sched_dualq_processor_enqueue() 392 thread_t thread; in sched_dualq_processor_queue_shutdown() local 424 thread_t thread) in sched_dualq_processor_queue_remove() 458 thread_t thread; in sched_dualq_steal_thread() local 489 thread_t thread; in sched_dualq_thread_update_scan() local 552 sched_dualq_thread_avoid_processor(processor_t processor, thread_t thread) in sched_dualq_thread_avoid_processor()
|
| H A D | sched_clutch.c | 945 thread_t thread) in sched_clutch_root_urgency_inc() 965 thread_t thread) in sched_clutch_root_urgency_dec() 1187 sched_edge_thread_preferred_cluster(thread_t thread) in sched_edge_thread_preferred_cluster() 1567 thread_t thread, in sched_clutch_cpu_usage_update() 1679 thread_t thread, in sched_clutch_thread_run_bucket_incr() 1707 thread_t thread, in sched_clutch_thread_run_bucket_decr() 1798 thread_t thread, in sched_clutch_thread_clutch_update() 1852 thread_t thread, in sched_edge_bound_thread_insert() 1874 thread_t thread) in sched_edge_bound_thread_remove() 1953 sched_edge_shared_rsrc_runnable_load_incr(sched_clutch_root_t root_clutch, thread_t thread) in sched_edge_shared_rsrc_runnable_load_incr() [all …]
|
| H A D | syscall_subr.c | 201 thread_t thread = THREAD_NULL; in thread_switch() local 349 thread_handoff_internal(thread_t thread, thread_continue_t continuation, in thread_handoff_internal() 387 thread_handoff_parameter(thread_t thread, thread_continue_t continuation, in thread_handoff_parameter() 396 thread_handoff_deallocate(thread_t thread, thread_handoff_option_t option) in thread_handoff_deallocate() 474 thread_t thread = (thread_t)p0; in thread_depress_expire() local 497 thread_depress_abort(thread_t thread) in thread_depress_abort() 525 thread_depress_abort_locked(thread_t thread) in thread_depress_abort_locked()
|
| H A D | ast.c | 115 thread_t thread = current_thread(); in ast_taken_kernel() local 161 thread_t thread = current_thread(); in ast_taken_user() local 429 ast_context(thread_t thread) in ast_context() 441 ast_propagate(thread_t thread) in ast_propagate()
|
| H A D | affinity.c | 108 thread_affinity_get(thread_t thread) in thread_affinity_get() 128 thread_affinity_set(thread_t thread, uint32_t tag) in thread_affinity_set() 351 thread_affinity_terminate(thread_t thread) in thread_affinity_terminate() 372 thread_affinity_exec(thread_t thread) in thread_affinity_exec() 451 affinity_set_add(affinity_set_t aset, thread_t thread) in affinity_set_add() 471 affinity_set_remove(affinity_set_t aset, thread_t thread) in affinity_set_remove()
|
| /xnu-8020.101.4/osfmk/arm/ |
| H A D | status.c | 75 __unused thread_t thread, in machine_thread_state_convert_to_user() 87 __unused thread_t thread, in machine_thread_state_convert_from_user() 101 __unused thread_t thread, in machine_thread_siguctx_pointer_convert_to_user() 110 __unused thread_t thread, in machine_thread_function_pointers_convert_from_user() 124 thread_t thread, in machine_thread_get_state() 291 thread_t thread, in machine_thread_get_kern_state() 345 thread_t thread, in machine_thread_set_state() 504 machine_thread_pc(thread_t thread) in machine_thread_pc() 511 machine_thread_reset_pc(thread_t thread, mach_vm_address_t pc) in machine_thread_reset_pc() 522 thread_t thread) in machine_thread_state_initialize() [all …]
|
| H A D | pcb.c | 147 machine_thread_on_core(thread_t thread) in machine_thread_on_core() 157 machine_thread_create(thread_t thread, task_t task, bool first_thread) in machine_thread_create() 190 thread_t thread) in machine_thread_destroy() 236 thread_t thread) in machine_stack_detach() 260 thread_t thread, in machine_stack_attach() 422 thread_t thread, in machine_thread_set_tsd_base()
|
| /xnu-8020.101.4/osfmk/arm64/ |
| H A D | status.c | 306 thread_t thread, in machine_thread_state_convert_to_user() 483 thread_t thread, in machine_thread_state_convert_from_user() 656 thread_t thread, in machine_thread_siguctx_pointer_convert_to_user() 689 thread_t thread, in machine_thread_function_pointers_convert_from_user() 724 machine_thread_get_state(thread_t thread, in machine_thread_get_state() 1022 machine_thread_get_kern_state(thread_t thread, in machine_thread_get_kern_state() 1068 machine_thread_switch_addrmode(thread_t thread) in machine_thread_switch_addrmode() 1102 machine_thread_set_state(thread_t thread, in machine_thread_set_state() 1464 machine_thread_pc(thread_t thread) in machine_thread_pc() 1471 machine_thread_reset_pc(thread_t thread, mach_vm_address_t pc) in machine_thread_reset_pc() [all …]
|
| /xnu-8020.101.4/osfmk/i386/ |
| H A D | pcb.c | 284 set_debug_state32(thread_t thread, x86_debug_state32_t *ds) in set_debug_state32() 316 set_debug_state64(thread_t thread, x86_debug_state64_t *ds) in set_debug_state64() 354 get_debug_state32(thread_t thread, x86_debug_state32_t *ds) in get_debug_state32() 368 get_debug_state64(thread_t thread, x86_debug_state64_t *ds) in get_debug_state64() 517 machine_thread_on_core(thread_t thread) in machine_thread_on_core() 524 thread_t thread, in machine_processor_shutdown() 543 thread_t thread) in machine_thread_state_initialize() 597 get_exception_state64(thread_t thread, x86_exception_state64_t *es) in get_exception_state64() 610 get_exception_state32(thread_t thread, x86_exception_state32_t *es) in get_exception_state32() 624 set_thread_state32(thread_t thread, x86_thread_state32_t *ts) in set_thread_state32() [all …]
|
| H A D | locks_i386_opt.c | 146 thread_t thread = current_thread(); in lck_mtx_lock() local 200 thread_t thread = current_thread(); in lck_mtx_try_lock() local 267 thread_t thread = current_thread(); in lck_mtx_lock_spin_always() local 354 thread_t thread = current_thread(); in lck_mtx_try_lock_spin_always() local 461 thread_t thread = current_thread(); in lck_mtx_unlock() local
|
| H A D | bsd_i386.c | 95 __unused thread_t thread, in thread_userstack() 209 __unused thread_t thread, in thread_entrypoint() 741 thread_t thread, in thread_setuserstack() 768 thread_t thread, in thread_adjuserstack() 798 thread_setentrypoint(thread_t thread, mach_vm_address_t entry) in thread_setentrypoint() 818 thread_setsinglestep(thread_t thread, int on) in thread_setsinglestep() 858 find_user_regs(thread_t thread) in find_user_regs() 870 find_kern_regs(thread_t thread) in find_kern_regs()
|
| /xnu-8020.101.4/osfmk/kperf/ |
| H A D | kperf.h | 105 kperf_on_cpu(thread_t thread, thread_continue_t continuation, in kperf_on_cpu() 121 kperf_off_cpu(thread_t thread) in kperf_off_cpu() 135 kperf_make_runnable(thread_t thread, int interrupt) in kperf_make_runnable()
|