Home
last modified time | relevance | path

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

12345678910>>...15

/xnu-11417.140.69/osfmk/kern/
H A Dthread.h635 thread_t __th = (thread); \
663 void (*sched_call)(int type, thread_t thread);
784 thread_t handoff_thread;
1102 extern thread_t thread_bootstrap(void);
1111 thread_t thread);
1114 thread_t thread);
1123 thread_t thread);
1128 thread_t thread);
1131 thread_t thread) __attribute__ ((noinline));
1134 thread_t thread,
[all …]
H A Dsched_prim.h114 extern thread_t sched_rtlocal_steal_thread(processor_set_t stealing_pset, uint64_t earliest…
116 extern thread_t sched_rt_choose_thread(processor_set_t pset);
118 extern void sched_check_spill(processor_set_t pset, thread_t thread);
120 extern bool sched_thread_should_yield(processor_t processor, thread_t thread);
127 thread_t thread,
132 thread_t thread);
136 thread_t thread,
141 thread_t thread,
146 thread_t thread,
153 thread_t thread);
[all …]
H A Dpolicy_internal.h57 extern int proc_get_effective_thread_policy(thread_t thread, int flavor);
123 extern void proc_set_thread_policy(thread_t thread, int category, int flavor, int value);
124 extern void proc_set_thread_policy_ext(thread_t thread, int category, int flavor, int value, int va…
125 extern int proc_get_thread_policy(thread_t thread, int category, int flavor);
132 extern boolean_t thread_has_qos_policy(thread_t thread);
133 extern kern_return_t thread_remove_qos_policy(thread_t thread);
139 extern void task_set_main_thread_qos(task_t task, thread_t main_thread);
140 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.c91 static void act_abort(thread_t thread);
94 static void thread_set_apc_ast(thread_t thread);
95 static void thread_set_apc_ast_locked(thread_t thread);
118 thread_set_state_allowed(thread_t thread, int flavor, task_t curr_task) in thread_set_state_allowed()
175 thread_t thread) in thread_start()
198 thread_t thread, in thread_start_in_assert_wait()
244 thread_t thread) in thread_terminate_internal()
282 thread_t thread) in thread_terminate()
327 thread_t thread) in thread_terminate_from_user()
347 thread_t thread) in thread_terminate_pinned()
[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.c207 thread_t exception_thread;
263 static void thread_deallocate_enqueue(thread_t thread);
264 static void thread_deallocate_complete(thread_t thread);
266 static void ctid_table_remove(thread_t thread);
267 static void ctid_table_add(thread_t thread);
331 init_thread_from_template(thread_t thread) in init_thread_from_template()
350 thread_ro_create(task_t parent_task, thread_t th, thread_ro_t tro_tpl) in thread_ro_create()
362 thread_ro_destroy(thread_t th) in thread_ro_destroy()
377 thread_t
420 thread_is_active(thread_t thread) in thread_is_active()
[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.h175 extern void ast_context(thread_t thread);
178 extern void ast_propagate(thread_t thread);
195 extern void act_set_astbsd(thread_t);
196 extern void bsd_ast(thread_t);
211 extern void kevent_ast(thread_t thread, uint16_t bits);
212 extern void act_set_astkevent(thread_t thread, uint16_t bits);
213 extern uint16_t act_clear_astkevent(thread_t thread, uint16_t bits);
214 extern bool act_set_ast_reset_pcs(task_t task, thread_t thread);
221 extern void thread_debug_return_to_user_ast(thread_t thread);
H A Dsyscall_subr.c179 thread_t self = current_thread(); in thread_switch_continue()
201 thread_t thread = THREAD_NULL; in thread_switch()
202 thread_t self = current_thread(); in thread_switch()
276 thread_t pulled_thread = thread_run_queue_remove_for_handoff(thread); in thread_switch()
349 thread_handoff_internal(thread_t thread, thread_continue_t continuation, in thread_handoff_internal()
352 thread_t self = current_thread(); in thread_handoff_internal()
360 thread_t pulled_thread = thread_prepare_for_handoff(thread, option); 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()
417 thread_depress_timer_setup(thread_t self) in thread_depress_timer_setup()
[all …]
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 Dbsd_kern.c63 thread_t get_firstthread(task_t);
65 int get_thread_userstop(thread_t);
67 void task_act_iterate_wth_args(task_t, void (*)(thread_t, void *), void *);
68 kern_return_t get_signalact(task_t, thread_t *, int);
112 get_bsdthreadtask_info(thread_t th) in get_bsdthreadtask_info()
136 __thread_ro_circularity_panic(thread_t th, thread_ro_t tro) in __thread_ro_circularity_panic()
143 get_thread_ro_unchecked(thread_t th) in get_thread_ro_unchecked()
149 get_thread_ro(thread_t th) in get_thread_ro()
174 clear_thread_ro_proc(thread_t th) in clear_thread_ro_proc()
182 get_bsdthread_info(thread_t th) in get_bsdthread_info()
[all …]
H A Dipc_tt.h102 thread_t thread);
121 thread_t thread,
127 thread_t thread);
131 thread_t thread);
135 thread_t thread);
139 thread_t thread);
264 extern thread_t convert_port_to_thread(
275 extern thread_t port_name_to_thread(
291 extern void thread_dealloc_kernel_special_reply_port(thread_t thread);
305 thread_t thread,
H A Dthread_group.h123 void thread_group_init_thread(thread_t t, task_t task);
139 struct thread_group *thread_group_get(thread_t t);
140 struct thread_group *thread_group_get_home_group(thread_t t);
141 void thread_group_set_bank(thread_t t, struct thread_group *tg);
155 void thread_set_work_interval_thread_group(thread_t t, struct thread_group *tg);
157 void thread_set_autojoin_thread_group_locked(thread_t t, struct thread_group *tg);
160 void thread_set_preadopt_thread_group(thread_t t, struct thread_group *tg);
163 void thread_resolve_and_enforce_thread_group_hierarchy_if_needed(thread_t t);
H A Dsched_amp.c53 static thread_t
60 sched_amp_processor_enqueue(processor_t processor, thread_t thread,
64 sched_amp_processor_queue_remove(processor_t processor, thread_t thread);
90 static thread_t
91 sched_amp_choose_thread(processor_t processor, int priority, __unused thread_t prev, ast_t reason);
100 sched_amp_choose_processor(processor_set_t pset, processor_t processor, thread_t thread);
103 sched_amp_thread_avoid_processor(processor_t processor, thread_t thread, __unused ast_t reason);
106 sched_amp_thread_should_yield(processor_t processor, thread_t thread);
112 sched_amp_thread_eligible_for_pset(thread_t thread, processor_set_t pset);
191 amp_runq_for_thread(processor_t processor, thread_t thread) in amp_runq_for_thread()
[all …]
H A Dthread_policy.c65 proc_thread_qos_remove_override_internal(thread_t thread, user_addr_t resource, int resource_type, …
126 thread_set_user_sched_mode_and_recompute_pri(thread_t thread, sched_mode_t mode);
132 proc_get_thread_policy_bitfield(thread_t thread, thread_policy_state_t info);
135 proc_set_thread_policy_locked(thread_t thread, int category, int flavor, int value, int value2, tas…
138 proc_set_thread_policy_spinlocked(thread_t thread, int category, int flavor, int value, int value2,…
141 thread_set_requested_policy_spinlocked(thread_t thread, int category, int flavor, int value, int va…
144 thread_get_requested_policy_spinlocked(thread_t thread, int category, int flavor, int* value2);
147 proc_get_thread_policy_locked(thread_t thread, int category, int flavor, int* value2);
150 thread_policy_update_spinlocked(thread_t thread, bool recompute_priority, task_pend_token_t pend_to…
153 thread_policy_update_internal_spinlocked(thread_t thread, bool recompute_priority, task_pend_token_…
[all …]
H A Dsched_dualq.c52 static thread_t
59 sched_dualq_processor_enqueue(processor_t processor, thread_t thread,
63 sched_dualq_processor_queue_remove(processor_t processor, thread_t thread);
89 static thread_t
90 sched_dualq_choose_thread(processor_t processor, int priority, __unused thread_t prev, ast_t reason…
99 sched_dualq_thread_avoid_processor(processor_t processor, thread_t thread, __unused ast_t reason);
175 dualq_runq_for_thread(processor_t processor, thread_t thread) in dualq_runq_for_thread()
218 static thread_t
222 __unused thread_t prev_thread, in sched_dualq_choose_thread()
254 thread_t potential_thread = run_queue_peek(chosen_runq); in sched_dualq_choose_thread()
[all …]
/xnu-11417.140.69/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-11417.140.69/osfmk/arm/
H A Dthread.h192 extern struct arm_saved_state * get_user_regs(thread_t);
193 extern struct arm_saved_state * find_user_regs(thread_t);
194 extern struct arm_saved_state * find_kern_regs(thread_t);
195 extern struct arm_vfpsaved_state * find_user_vfp(thread_t);
196 extern arm_debug_state32_t * find_debug_state32(thread_t);
197 extern arm_debug_state32_t * find_or_allocate_debug_state32(thread_t);
198 extern arm_debug_state64_t * find_debug_state64(thread_t);
199 extern arm_debug_state64_t * find_or_allocate_debug_state64(thread_t);
200 extern void set_user_neon_reg(thread_t, unsigned int, uint128_t);
222 extern arm_sme_saved_state_t *machine_thread_get_sme_state(thread_t thread);
[all …]
H A Dcpu_data.h51 static inline __attribute__((const)) thread_t
64 return __unsafe_forge_single(thread_t, result); in current_thread_fast()
67 return __unsafe_forge_single(thread_t, __builtin_arm_mrc(15, 0, 13, 0, 4)); in current_thread_fast()
86 static inline thread_t
99 return __unsafe_forge_single(thread_t, result); in current_thread_volatile()
102 return __unsafe_forge_single(thread_t, __builtin_arm_mrc(15, 0, 13, 0, 4)); in current_thread_volatile()
127 extern unsigned int get_preemption_level_for_thread(thread_t);
/xnu-11417.140.69/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);
H A Dmisc_protos.h115 thread_t Switch_context(thread_t, thread_continue_t, thread_t);
117 __not_tail_called thread_t
118 Shutdown_context(thread_t thread, void (*doshutdown)(processor_t), processor_t processor);
137 extern void act_machine_switch_pcb(thread_t old, thread_t new);
/xnu-11417.140.69/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);
57 extern void act_set_astproc_resource(thread_t);
/xnu-11417.140.69/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