Lines Matching defs:thread

385 struct thread {  struct
389 uint64_t thread_magic; argument
409 struct mpsc_queue_chain mpsc_links; /* thread daemon mpsc links */ argument
415 waitq_t waitq; /* wait queue this thread is enqueued on */ argument
416 struct turnstile *turnstile; /* thread's turnstile, protected by primitives interlock */ argument
417 void *inheritor; /* inheritor of the primitive the thread will block on */ argument
429 * thread can be picked up to run by its next processor. argument
440 * level (clutch_bucket defines a unique thread group and scheduling bucket pair). The argument
454 decl_simple_lock_data(, wake_lock); /* for thread stop / wait (wake_lock()) */ argument
455 uint16_t options; /* options set by thread itself */ argument
475 bool at_safe_point; /* thread_abort_safely allowed */ argument
485 * may be examined by this thread argument
487 thread_rr_state_t t_rr_state; /* state for restartable ranges */ argument
488 thread_continue_t continuation; /* continue here next dispatch */ argument
491 /* Data updated/used in thread_invoke */ argument
496 struct machine_thread machine; argument
499 struct kasan_thread_data kasan_data; argument
502 kcov_thread_data_t kcov_data; argument
527 /* This thread's contribution to global sched counters */ argument
535 #define TH_SFLAG_NO_SMT 0x0001 /* On an SMT CPU, this thread must be sched… argument
587 int16_t suspend_count; /* Kernel holds on this thread */ argument
589 …uint8_t page_wait_class; /* The type of VM page this thread will wait on ne… argument
595 uint32_t rwlock_count; /* Number of lck_rw_t locks held by thread */ argument
598 rw_lock_debug_t rw_lock_held; /* rw_locks currently held by the thread */ argument
608 struct { /* see mach/thread_policy.h */ argument
617 uint64_t last_run_time; /* time when thread was switched away from */ argument
618 …uint64_t last_made_runnable_time; /* time when thread was unblocked or preem… argument
619 …uint64_t last_basepri_change_time; /* time when thread was last changed in ba… argument
622 * workq_quantum_deadline is the workq thread's next runtime deadline. This argument
650 #define WORKQ_QUANTUM_HISTORY_WRITE_ENTRY(thread, ...) ({\ argument
658 #define WORKQ_QUANTUM_HISTORY_WRITE_ENTRY(thread, ...) argument
664 struct thread_group *thread_group; argument
670 processor_t chosen_processor; /* Where we want to run this thread */ argument
679 void (*sched_call)(int type, thread_t thread); argument
701 …timer_data_t runnable_timer; /* time the thread is runnable (including running)… argument
703 struct recount_thread th_recount; /* resource accounting */ argument
707 uint64_t wait_sfi_begin_time; /* start time for thread waiting in SFI */ argument
714 queue_chain_t affinity_threads; argument
721 …/* Various bits of state to stash across a continuation, exclusive to the current thread block poi… argument
735 struct ipc_kmsg *XNU_PTRAUTH_SIGNED_PTR("thread.ith_kmsg") kmsg; /* received message */ argument
750 /* Only user threads can cause Mach exceptions, only kernel threads can be thread call threads */ argument
752 /* Thread call thread's state structure, stored on its stack */ argument
781 struct thread_test_context *th_test_ctx; /* thread-specific data for kernel tests */ argument
784 queue_chain_t threads; /* global list of all threads */ argument
787 queue_chain_t task_threads; argument
793 struct thread_ro *t_tro; argument
795 thread_t handoff_thread; argument
805 ipc_active:1, /* IPC with the thread ports is allowed */ argument
809 policy_reset:1, /* Disallow policy parameter changes on terminating threads */ argument
810 suspend_parked:1, /* thread parked in thread_suspended */ argument
811 corpse_dup:1, /* TRUE when thread is an inactive duplicate in a corpse */ argument
822 uint16_t t_dtrace_flags; /* DTrace thread states */ argument
825 uint32_t t_dtrace_predcache; /* DTrace per thread predicate value hint */ argument
826 int64_t t_dtrace_tracing; /* Thread time under dtrace_probe() */
827 int64_t t_dtrace_vtime;
852 #define T_KPERF_AST_CALLSTACK 0x1 /* dump a callstack on thread's next AST */ argument
862 uint32_t kperf_pet_gen; /* last generation of PET that sampled this thread*/ argument
864 uint32_t kperf_pet_cnt; /* how many times a thread has been sampled by PET */ argument
871 /* accumulated performance counters for this thread */ argument
876 /* hypervisor virtual CPU object associated with this thread */ argument
877 void *hv_thread_target; argument
884 ledger_t t_threadledger; /* per thread ledger */ argument
889 uint64_t thread_id; /* system wide unique thread-id */ argument
890 uint32_t ctid; /* system wide compact thread-id */ argument
891 uint32_t ctsid; /* this thread ts ID */ argument
894 struct thread_requested_policy requested_policy; argument
895 struct thread_effective_policy effective_policy; argument
898 struct thread_qos_override { argument
911 io_stat_info_t thread_io_stats; /* per-thread I/O statistics */ argument
913 uint32_t thread_callout_interrupt_wakeups; argument
914 uint32_t thread_callout_platform_idle_wakeups; argument
915 uint32_t thread_timer_wakeups_bin_1; argument
916 uint32_t thread_timer_wakeups_bin_2; argument
917 thread_tag_t thread_tag; argument
927 callout_woke_thread:1, argument
930 thread_bitfield_unused:11; argument
934 * Cluster to which the thread is soft-bound for scheduling. The thread will always run argument
941 /* The preadopt thread group is set on the thread argument
963 struct thread_group *preadopt_thread_group; argument
983 struct thread_group *old_preadopt_thread_group; argument
991 struct thread_group *bank_thread_group; argument
997 /* This is a borrowed reference to the auto join thread group from the argument
1010 thread_work_interval_flags_t th_work_interval_flags; argument
1013 uintptr_t thread_wakeup_bt[64]; argument
1018 …uint32_t decompressions; /* Per-thread decompressions counter to be added to per-t… argument
1019 …int thread_region_page_shift; /* Page shift that this thread would like to use… argument
1037 /* TXM thread stack associated with this thread */ argument
1038 uintptr_t txm_thread_stack; argument
1045 /* Thread exclaves interrupt-safe state. Only mutated by the current thread argument
1049 thread_exclaves_intstate_flags_t th_exclaves_intstate; argument
1053 thread_exclaves_state_flags_t th_exclaves_state; argument
1057 thread_exclaves_inspection_flags_t _Atomic th_exclaves_inspection_state; argument
1062 /* Queue of threads being inspected by Stackshot. argument
1065 /* Queue of threads being inspected by kperf. argument
1067 queue_chain_t th_exclaves_inspection_queue_kperf;
1075 task_t iomd_faultable_buffer_provider;
1111 #define assert_thread_magic(thread) assertf((thread)->thread_magic == THREAD_MAGIC, \ argument
1115 #define assert_thread_magic(thread) do { (void)(thread); } while (0) argument
1199 #define thread_should_halt_fast(thread) (!(thread)->active) argument
1346 #define thread_mtx_try(thread) lck_mtx_try_lock(&(thread)->mutex) argument
1347 #define thread_mtx_held(thread) lck_mtx_assert(&(thread)->mutex, LCK_MTX_ASSERT_OWN… argument
1427 thread_set_tag_internal(thread_t thread, thread_tag_t tag) in thread_set_tag_internal()
1433 thread_get_tag_internal(thread_t thread) in thread_get_tag_internal()
1830 thread_t thread; member