Home
last modified time | relevance | path

Searched refs:thread_t (Results 1 – 25 of 374) sorted by relevance

12345678910>>...15

/xnu-12377.41.6/osfmk/kern/
H A Dthread.h651 thread_t __th = (thread); \
679 void (*sched_call)(int type, thread_t thread);
795 thread_t handoff_thread;
1118 extern thread_t thread_bootstrap(void);
1127 thread_t thread);
1130 thread_t thread);
1139 thread_t thread);
1144 thread_t thread);
1147 thread_t thread) __attribute__ ((noinline));
1150 thread_t thread,
[all …]
H A Dsched_prim.h106 extern void sched_check_spill(processor_set_t pset, thread_t thread);
108 extern bool sched_thread_should_yield(processor_t processor, thread_t thread);
115 thread_t thread,
120 thread_t thread);
124 thread_t thread,
129 thread_t thread,
134 thread_t thread,
141 thread_t thread);
145 thread_t old_thread,
146 thread_t new_thread);
[all …]
H A Dpolicy_internal.h57 extern int proc_get_effective_thread_policy(thread_t thread, int flavor);
124 extern void proc_set_thread_policy(thread_t thread, int category, int flavor, int value);
125 extern void proc_set_thread_policy_ext(thread_t thread, int category, int flavor, int value, int va…
126 extern int proc_get_thread_policy(thread_t thread, int category, int flavor);
133 extern boolean_t thread_has_qos_policy(thread_t thread);
134 extern kern_return_t thread_remove_qos_policy(thread_t thread);
140 extern void task_set_main_thread_qos(task_t task, thread_t main_thread);
141 extern void proc_set_task_spawnpolicy(task_t task, thread_t thread, int apptype, int qos_clamp, tas…
174 extern void proc_apply_task_networkbg(int pid, thread_t thread);
177 extern void thread_freeze_base_pri(thread_t thread);
[all …]
H A Dthread_act.c90 static void act_abort(thread_t thread);
93 static void thread_set_apc_ast(thread_t thread);
94 static void thread_set_apc_ast_locked(thread_t thread);
106 thread_t thread, in thread_set_state_allowed()
185 thread_t thread) in thread_start()
208 thread_t thread, in thread_start_in_assert_wait()
254 thread_t thread) in thread_terminate_internal()
292 thread_t thread) in thread_terminate()
337 thread_t thread) in thread_terminate_from_user()
357 thread_t thread) in thread_terminate_immovable()
[all …]
H A Dwork_interval.h73 kern_work_interval_create(thread_t thread, struct kern_work_interval_create_args *create_params);
124 kern_work_interval_explicit_join(thread_t thread, struct work_interval *work_interval);
128 kern_work_interval_destroy(thread_t thread, uint64_t work_interval_id);
130 kern_work_interval_join(thread_t thread, mach_port_name_t port_name);
133 kern_work_interval_notify(thread_t thread, struct kern_work_interval_args* kwi_args);
145 bool work_interval_should_propagate(thread_t cthread, thread_t thread);
146 void work_interval_auto_join_propagate(thread_t from, thread_t to);
147 void work_interval_auto_join_unwind(thread_t thread);
148 void work_interval_auto_join_demote(thread_t thread);
154 extern kern_return_t work_interval_thread_terminate(thread_t thread);
[all …]
H A Dthread.c210 thread_t exception_thread;
266 static void thread_deallocate_enqueue(thread_t thread);
267 static void thread_deallocate_complete(thread_t thread);
269 __static_testable void ctid_table_remove(thread_t thread);
270 __static_testable void ctid_table_add(thread_t thread);
333 __static_testable __inline_testable void init_thread_from_template(thread_t thread);
335 init_thread_from_template(thread_t thread) in init_thread_from_template()
354 thread_ro_create(task_t parent_task, thread_t th, thread_ro_t tro_tpl) in thread_ro_create()
366 thread_ro_destroy(thread_t th) in thread_ro_destroy()
381 thread_t
[all …]
H A Dmachine.h89 extern thread_t machine_processor_shutdown(
90 thread_t thread,
126 extern void machine_thread_going_on_core(thread_t new_thread,
132 extern void machine_thread_going_off_core(thread_t old_thread, boolean_t thread_terminating,
139 extern void machine_work_interval_notify(thread_t thread, struct kern_work_interval_args* kwi_args);
148 thread_t old,
149 thread_t new);
154 thread_t thread);
160 …read_group *tg_blocked, struct thread_group *tg_blocking, uint32_t flags, thread_t blocked_thread);
161 …roup *tg_unblocked, struct thread_group *tg_unblocking, uint32_t flags, thread_t unblocked_thread);
H A Dast.h179 extern void ast_context(thread_t thread);
182 extern void ast_propagate(thread_t thread);
199 extern void act_set_astbsd(thread_t);
200 extern void bsd_ast(thread_t);
215 extern void kevent_ast(thread_t thread, uint16_t bits);
216 extern void act_set_astkevent(thread_t thread, uint16_t bits);
217 extern uint16_t act_clear_astkevent(thread_t thread, uint16_t bits);
218 extern bool act_set_ast_reset_pcs(task_t task, thread_t thread);
225 extern void thread_debug_return_to_user_ast(thread_t thread);
H A Daffinity.h57 extern void thread_affinity_dup(thread_t parent, thread_t child);
58 extern void thread_affinity_terminate(thread_t thread);
71 extern kern_return_t thread_affinity_set(thread_t thread, uint32_t tag);
72 extern uint32_t thread_affinity_get(thread_t thread);
73 extern void thread_affinity_exec(thread_t thread);
H A Dipc_tt.h103 thread_t thread);
117 thread_t thread,
122 thread_t thread);
126 thread_t thread);
130 thread_t thread);
134 thread_t thread);
255 extern thread_t convert_port_to_thread(
266 extern thread_t port_name_to_thread(
282 extern void thread_dealloc_kernel_special_reply_port(thread_t thread);
293 thread_t thread,
H A Dsched_rt.h100 …tlocal_choose_processor_smt(processor_set_t starting_pset, processor_t processor, thread_t thread);
102 …t sched_rt_choose_processor(processor_set_t starting_pset, processor_t processor, thread_t thread);
106 thread_t sched_rt_steal_thread(processor_set_t stealing_pset);
108 thread_t sched_rt_choose_thread(processor_t processor);
170 void check_rt_runq_consistency(rt_queue_t rt_run_queue, thread_t thread);
177 thread_t rt_runq_dequeue(rt_queue_t rt_run_queue);
179 thread_t rt_runq_first(rt_queue_t rt_run_queue);
180 bool rt_runq_insert(processor_t processor, processor_set_t pset, thread_t thread);
183 void rt_runq_remove(rt_queue_t rt_run_queue, thread_t thread);
H A Dbsd_kern.c62 thread_t get_firstthread(task_t);
64 int get_thread_userstop(thread_t);
66 void task_act_iterate_wth_args(task_t, void (*)(thread_t, void *), void *);
67 kern_return_t get_signalact(task_t, thread_t *, int);
111 get_bsdthreadtask_info(thread_t th) in get_bsdthreadtask_info()
135 __thread_ro_circularity_panic(thread_t th, thread_ro_t tro) in __thread_ro_circularity_panic()
142 get_thread_ro_unchecked(thread_t th) in get_thread_ro_unchecked()
148 get_thread_ro(thread_t th) in get_thread_ro()
173 clear_thread_ro_proc(thread_t th) in clear_thread_ro_proc()
181 get_bsdthread_info(thread_t th) in get_bsdthread_info()
[all …]
H A Dsyscall_subr.c181 thread_t self = current_thread(); in thread_switch_continue()
203 thread_t thread = THREAD_NULL; in thread_switch()
204 thread_t self = current_thread(); in thread_switch()
278 thread_t pulled_thread = thread_run_queue_remove_for_handoff(thread); in thread_switch()
355 thread_handoff_internal(thread_t thread, thread_continue_t continuation, in thread_handoff_internal()
358 thread_t self = current_thread(); in thread_handoff_internal()
366 thread_t pulled_thread = thread_prepare_for_handoff(thread, option); in thread_handoff_internal()
397 thread_handoff_parameter(thread_t thread, thread_continue_t continuation, in thread_handoff_parameter()
406 thread_handoff_deallocate(thread_t thread, thread_handoff_option_t option) in thread_handoff_deallocate()
427 thread_depress_timer_setup(thread_t self) in thread_depress_timer_setup()
[all …]
H A Dthread_group.h124 void thread_group_init_thread(thread_t t, task_t task);
140 struct thread_group *thread_group_get(thread_t t);
141 struct thread_group *thread_group_get_home_group(thread_t t);
142 void thread_group_set_bank(thread_t t, struct thread_group *tg);
156 void thread_set_work_interval_thread_group(thread_t t, struct thread_group *tg);
158 void thread_set_autojoin_thread_group_locked(thread_t t, struct thread_group *tg);
161 void thread_set_preadopt_thread_group(thread_t t, struct thread_group *tg);
164 void thread_resolve_and_enforce_thread_group_hierarchy_if_needed(thread_t t);
H A Dsched_amp.c58 static thread_t
65 sched_amp_processor_enqueue(processor_t processor, thread_t thread,
69 sched_amp_processor_queue_remove(processor_t processor, thread_t thread);
95 static thread_t
96 sched_amp_choose_thread(processor_t processor, int priority, __unused thread_t prev, ast_t reason);
105 sched_amp_choose_processor(processor_set_t pset, processor_t processor, thread_t thread, sched_opti…
108 sched_amp_thread_avoid_processor(processor_t processor, thread_t thread, __unused ast_t reason);
111 sched_amp_thread_should_yield(processor_t processor, thread_t thread);
117 sched_amp_thread_eligible_for_pset(thread_t thread, processor_set_t pset);
196 amp_runq_for_thread(processor_t processor, thread_t thread) in amp_runq_for_thread()
[all …]
H A Dsched_clutch.h333 void sched_clutch_thread_clutch_update(thread_t, sched_clutch_t, sched_clutch_t);
334 uint32_t sched_edge_thread_preferred_cluster(thread_t);
337 uint32_t sched_clutch_thread_run_bucket_incr(thread_t, sched_bucket_t);
338 uint32_t sched_clutch_thread_run_bucket_decr(thread_t, sched_bucket_t);
339 void sched_clutch_cpu_usage_update(thread_t, uint64_t);
340 uint32_t sched_clutch_thread_pri_shift(thread_t, sched_bucket_t);
346 extern sched_clutch_t sched_clutch_for_thread(thread_t);
351 extern kern_return_t sched_clutch_thread_group_cpu_time_for_thread(thread_t thread, int sched_bucke…
380 extern void sched_edge_stir_the_pot_update_registry_state(thread_t thread);
H A Dthread_policy.c66 proc_thread_qos_remove_override_internal(thread_t thread, user_addr_t resource, int resource_type, …
127 thread_set_user_sched_mode_and_recompute_pri(thread_t thread, sched_mode_t mode);
133 proc_get_thread_policy_bitfield(thread_t thread, thread_policy_state_t info);
136 proc_set_thread_policy_locked(thread_t thread, int category, int flavor, int value, int value2, tas…
139 proc_set_thread_policy_spinlocked(thread_t thread, int category, int flavor, int value, int value2,…
142 thread_set_requested_policy_spinlocked(thread_t thread, int category, int flavor, int value, int va…
145 thread_get_requested_policy_spinlocked(thread_t thread, int category, int flavor, int* value2);
148 proc_get_thread_policy_locked(thread_t thread, int category, int flavor, int* value2);
151 thread_policy_update_spinlocked(thread_t thread, bool recompute_priority, task_pend_token_t pend_to…
154 thread_policy_update_internal_spinlocked(thread_t thread, bool recompute_priority, task_pend_token_…
[all …]
/xnu-12377.41.6/osfmk/kperf/
H A Dkperf.h44 uint32_t kperf_get_thread_ast(thread_t thread);
45 void kperf_set_thread_ast(thread_t thread, uint32_t flags);
51 boolean_t kperf_thread_get_dirty(thread_t thread);
52 void kperf_thread_set_dirty(thread_t thread, boolean_t dirty);
94 extern __attribute__((noinline)) void kperf_thread_ast_handler(thread_t thread);
105 kperf_on_cpu(thread_t thread, thread_continue_t continuation, in kperf_on_cpu()
109 void kperf_on_cpu_internal(thread_t thread, thread_continue_t continuation, in kperf_on_cpu()
121 kperf_off_cpu(thread_t thread) in kperf_off_cpu()
124 void kperf_lazy_off_cpu(thread_t thread); in kperf_off_cpu()
135 kperf_make_runnable(thread_t thread, int interrupt) in kperf_make_runnable()
[all …]
/xnu-12377.41.6/osfmk/arm/
H A Dcpu_data.h53 static inline __attribute__((const)) thread_t
66 return __unsafe_forge_single(thread_t, result); in current_thread_fast()
69 return __unsafe_forge_single(thread_t, __builtin_arm_mrc(15, 0, 13, 0, 4)); in current_thread_fast()
73 __attribute__((const)) thread_t current_thread_fast(void);
92 static inline thread_t
105 return __unsafe_forge_single(thread_t, result); in current_thread_volatile()
108 return __unsafe_forge_single(thread_t, __builtin_arm_mrc(15, 0, 13, 0, 4)); in current_thread_volatile()
133 extern unsigned int get_preemption_level_for_thread(thread_t);
H A Dthread.h205 extern struct arm_saved_state * get_user_regs(thread_t);
206 extern struct arm_saved_state * find_user_regs(thread_t);
207 extern struct arm_saved_state * find_kern_regs(thread_t);
208 extern struct arm_vfpsaved_state * find_user_vfp(thread_t);
209 extern arm_debug_state32_t * find_debug_state32(thread_t);
210 extern arm_debug_state32_t * find_or_allocate_debug_state32(thread_t);
211 extern arm_debug_state64_t * find_debug_state64(thread_t);
212 extern arm_debug_state64_t * find_or_allocate_debug_state64(thread_t);
213 extern void set_user_neon_reg(thread_t, unsigned int, uint128_t);
235 extern arm_sme_saved_state_t *machine_thread_get_sme_state(thread_t thread);
[all …]
/xnu-12377.41.6/osfmk/i386/
H A Dfpu.h115 thread_t thr_act,
118 thread_t thr_act,
122 thread_t thr_act,
126 thread_t parent,
127 thread_t child);
132 extern void fpflush(thread_t);
137 thread_t old,
138 thread_t new);
140 thread_t thread,
149 extern uint32_t thread_fpsimd_hash(thread_t);
H A Dpal_routines.h100 extern void pal_set_signal_delivery(thread_t);
107 extern void pal_dbg_page_fault( thread_t thread, user_addr_t vadddr,
114 void pal_syscall_restart(thread_t thread, x86_saved_state_t *state);
117 void pal_execve_return(thread_t thread);
120 void pal_thread_terminate_self(thread_t thread);
123 void pal_ast_check(thread_t thread);
139 void pal_register_cache_state(thread_t thread, pal_cache_state_t state);
/xnu-12377.41.6/bsd/kern/
H A Dast.h41 extern void act_set_astbsd(thread_t);
42 extern void bsd_ast(thread_t);
48 extern void kevent_ast(thread_t thread, uint16_t bits);
49 extern void act_set_astkevent(thread_t thread, uint16_t bits);
50 extern uint16_t act_clear_astkevent(thread_t thread, uint16_t bits);
51 extern bool act_set_ast_reset_pcs(struct task *task, thread_t thread);
58 extern void act_set_astproc_resource(thread_t);
/xnu-12377.41.6/bsd/sys/
H A Dpthread_shims.h56 typedef void (*sched_call_t)(int type, thread_t thread);
117 void (*pthread_find_owner)(thread_t thread, struct stackshot_thread_waitinfo *waitinfo);
118 void *(*pthread_get_thread_kwq)(thread_t thread);
122 int (*workq_handle_stack_events)(proc_t p, thread_t th, vm_map_t map,
132 void (*workq_setup_thread)(proc_t p, thread_t th, vm_map_t map,
136 void (*workq_markfree_threadstack)(proc_t p, thread_t, vm_map_t map,
161 thread_t (*task_findtid)(task_t t, uint64_t tid);
162 void (*thread_deallocate_safe)(thread_t);
170 struct turnstile **tstore, thread_t owner, block_hint_t block_hint,
182 void (*psynch_wait_update_owner)(uintptr_t kwq, thread_t owner,
[all …]
H A Dsignalvar.h188 void execsigs(struct proc *p, thread_t thread);
199 int setsigvec(proc_t, thread_t, int signum, struct __kern_sigaction *, boolean_t in_sigstart);
211 void psignal_try_thread(proc_t, thread_t, int signum);
212 void psignal_try_thread_with_reason(proc_t, thread_t, int, struct os_reason*);
213 void psignal_thread_with_reason(proc_t, thread_t, int, struct os_reason*);
214 void psignal_uthread(thread_t, int);
217 void threadsignal(thread_t sig_actthread, int signum,
219 int thread_issignal(proc_t p, thread_t th, sigset_t mask);
220 void psignal_vfork(struct proc *p, task_t new_task, thread_t thread,
222 void psignal_vfork_with_reason(proc_t p, task_t new_task, thread_t thread,
[all …]

12345678910>>...15