Home
last modified time | relevance | path

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

12345678910

/xnu-8019.80.24/osfmk/kern/
H A Dthread.h216 struct thread { struct
220 uint64_t thread_magic; argument
238 struct mpsc_queue_chain mpsc_links; /* thread daemon mpsc links */ argument
244 struct waitq *waitq; /* wait queue this thread is enqueued on */ argument
245 struct turnstile *turnstile; /* thread's turnstile, protected by primitives interlock */ argument
246 void *inheritor; /* inheritor of the primitive the thread will block on */ argument
260 * level (clutch_bucket defines a unique thread group and scheduling bucket pair). The argument
274 decl_simple_lock_data(, wake_lock); /* for thread stop / wait (wake_lock()) */ argument
275 uint16_t options; /* options set by thread itself */ argument
290 bool at_safe_point; /* thread_abort_safely allowed */ argument
[all …]
H A Dthread_act.c95 thread_t thread) in thread_start()
118 thread_t thread, in thread_start_in_assert_wait()
160 thread_t thread) in thread_terminate_internal()
198 thread_t thread) in thread_terminate()
239 thread_t thread) in thread_terminate_from_user()
259 thread_t thread) in thread_terminate_pinned()
291 thread_hold(thread_t thread) in thread_hold()
309 thread_release(thread_t thread) in thread_release()
329 thread_suspend(thread_t thread) in thread_suspend()
357 thread_resume(thread_t thread) in thread_resume()
[all …]
H A Dthread.c301 init_thread_from_template(thread_t thread) in init_thread_from_template()
405 thread_is_active(thread_t thread) in thread_is_active()
413 thread_t thread = current_thread(); in thread_corpse_continue() local
443 thread_t thread = current_thread(); in thread_terminate_self() local
691 thread_ref_release(thread_t thread) in thread_ref_release()
704 thread_deallocate_safe(thread_t thread) in thread_deallocate_safe()
713 thread_deallocate(thread_t thread) in thread_deallocate()
722 thread_t thread) in thread_deallocate_complete()
840 thread_t thread; in thread_exception_queue_invoke() local
875 thread_t thread, in thread_exception_enqueue()
[all …]
H A Dthread_policy.c149 thread_has_qos_policy(thread_t thread) in thread_has_qos_policy()
156 thread_remove_qos_policy_locked(thread_t thread, in thread_remove_qos_policy_locked()
168 thread_remove_qos_policy(thread_t thread) in thread_remove_qos_policy()
189 thread_is_static_param(thread_t thread) in thread_is_static_param()
258 thread_t thread, in thread_policy_set()
324 thread_t thread, in thread_policy_set_internal()
618 thread_set_mode_and_absolute_pri_internal(thread_t thread, in thread_set_mode_and_absolute_pri_internal()
683 thread_freeze_base_pri(thread_t thread) in thread_freeze_base_pri()
698 thread_unfreeze_base_pri(thread_t thread) in thread_unfreeze_base_pri()
759 thread_reset_workq_qos(thread_t thread, uint32_t qos) in thread_reset_workq_qos()
[all …]
H A Dpriority.c104 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 Dkpc_thread.c123 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 Dsched_traditional.c290 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 Dsched_amp.c189 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 Dsched_multiq.c521 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 Dsched_grrr.c340 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 Dwork_interval.c195 __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()
624 thread_set_work_interval(thread_t thread, in thread_set_work_interval()
748 thread_set_work_interval_explicit_join(thread_t thread, struct work_interval *work_interval) in thread_set_work_interval_explicit_join()
755 work_interval_thread_terminate(thread_t thread) in work_interval_thread_terminate()
765 kern_work_interval_notify(thread_t thread, struct kern_work_interval_args* kwi_args) in kern_work_interval_notify()
807 kern_work_interval_create(thread_t thread, in kern_work_interval_create()
[all …]
H A Dlock_rw.c311 canlock_rwlock_panic(lck_rw_t* lock, thread_t thread, struct rw_lock_debug_entry *entry) in canlock_rwlock_panic()
319 assert_canlock_rwlock(lck_rw_t* lock, thread_t thread, lck_rw_type_t type) in assert_canlock_rwlock()
349 held_rwlock_notheld_panic(lck_rw_t* lock, thread_t thread) in held_rwlock_notheld_panic()
356 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()
370 assert_held_rwlock(lck_rw_t* lock, thread_t thread, lck_rw_type_t type) in assert_held_rwlock()
402 change_held_rwlock(lck_rw_t* lock, thread_t thread, lck_rw_type_t typeFrom, void* caller) in change_held_rwlock()
463 add_held_rwlock_too_many_panic(thread_t thread) in add_held_rwlock_too_many_panic()
469 add_held_rwlock(lck_rw_t* lock, thread_t thread, lck_rw_type_t type, void* caller) in add_held_rwlock()
540 remove_held_rwlock(lck_rw_t* lock, thread_t thread, lck_rw_type_t type) in remove_held_rwlock()
612 thread_t thread) in lck_rw_inc_thread_count()
[all …]
H A Dsched_prim.c190 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 Dsched_dualq.c172 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 Dsched_clutch.c945 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 Dsyscall_subr.c201 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 Dast.c115 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 Daffinity.c108 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()
H A Dturnstile.c1000 thread_t thread = current_thread(); in turnstile_prepare() local
1085 thread_t thread = current_thread(); in turnstile_complete() local
1213 thread_t thread = current_thread(); in turnstile_update_inheritor_locked() local
1387 thread_t thread = current_thread(); in turnstile_stash_inheritor() local
1473 thread_t thread) in turnstile_need_thread_promotion_update()
1538 thread_t thread) in turnstile_update_thread_promotion_locked()
1582 thread_t thread, in thread_add_turnstile_promotion()
1652 thread_t thread, in thread_remove_turnstile_promotion()
1753 thread_t thread, in thread_update_turnstile_promotion_locked()
1813 thread_t thread, in thread_update_turnstile_promotion()
[all …]
/xnu-8019.80.24/osfmk/arm64/
H A Dstatus.c303 thread_t thread, in machine_thread_state_convert_to_user()
394 thread_t thread, in machine_thread_state_convert_from_user()
499 thread_t thread, in machine_thread_siguctx_pointer_convert_to_user()
532 thread_t thread, in machine_thread_function_pointers_convert_from_user()
567 machine_thread_get_state(thread_t thread, in machine_thread_get_state()
865 machine_thread_get_kern_state(thread_t thread, in machine_thread_get_kern_state()
911 machine_thread_switch_addrmode(thread_t thread) in machine_thread_switch_addrmode()
945 machine_thread_set_state(thread_t thread, in machine_thread_set_state()
1307 machine_thread_pc(thread_t thread) in machine_thread_pc()
1314 machine_thread_reset_pc(thread_t thread, mach_vm_address_t pc) in machine_thread_reset_pc()
[all …]
/xnu-8019.80.24/osfmk/arm/
H A Dstatus.c75 __unused thread_t thread, in machine_thread_state_convert_to_user()
86 __unused thread_t thread, in machine_thread_state_convert_from_user()
97 __unused thread_t thread, in machine_thread_siguctx_pointer_convert_to_user()
106 __unused thread_t thread, in machine_thread_function_pointers_convert_from_user()
120 thread_t thread, in machine_thread_get_state()
287 thread_t thread, in machine_thread_get_kern_state()
341 thread_t thread, in machine_thread_set_state()
500 machine_thread_pc(thread_t thread) in machine_thread_pc()
507 machine_thread_reset_pc(thread_t thread, mach_vm_address_t pc) in machine_thread_reset_pc()
518 thread_t thread) in machine_thread_state_initialize()
[all …]
H A Dpcb.c147 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-8019.80.24/osfmk/i386/
H A Dpcb.c284 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 Dlocks_i386_opt.c146 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 Dbsd_i386.c95 __unused thread_t thread, in thread_userstack()
209 __unused thread_t thread, in thread_entrypoint()
738 thread_t thread, in thread_setuserstack()
765 thread_t thread, in thread_adjuserstack()
795 thread_setentrypoint(thread_t thread, mach_vm_address_t entry) in thread_setentrypoint()
815 thread_setsinglestep(thread_t thread, int on) in thread_setsinglestep()
855 find_user_regs(thread_t thread) in find_user_regs()
867 find_kern_regs(thread_t thread) in find_kern_regs()

12345678910