Home
last modified time | relevance | path

Searched refs:uth (Results 1 – 25 of 28) sorted by relevance

12

/xnu-11215/bsd/pthread/
H A Dpthread_workqueue.c854 if (uth && !uth->uu_save.uus_workq_park_data.has_stack) { in workq_oldest_killable_idle_thread()
855 uth = TAILQ_PREV(uth, workq_uthread_head, uu_workq_entry); in workq_oldest_killable_idle_thread()
856 if (uth) { in workq_oldest_killable_idle_thread()
860 return uth; in workq_oldest_killable_idle_thread()
1033 return uth; in workq_pop_idle_thread()
1572 if (uth && workq_thread_is_cooperative(uth)) { in workq_cooperative_allowance()
3102 if (uth && workq_threadreq_admissible(wq, uth, req)) { in workq_kern_threadreq_initiate()
3990 if (uth && workq_thread_is_nonovercommit(uth)) { in workq_constrained_allowance()
4098 if (uth && workq_thread_is_cooperative(uth)) { in workq_cooperative_queue_best_req()
4327 uth = NULL; in workq_threadreq_select()
[all …]
H A Dpthread_shims.c117 uthread_set_returnval(struct uthread *uth, int retval) in uthread_set_returnval() argument
119 uth->uu_rval[0] = retval; in uthread_set_returnval()
179 proc_usynch_get_requested_thread_qos(struct uthread *uth) in proc_usynch_get_requested_thread_qos() argument
181 thread_t thread = uth ? get_machthread(uth) : current_thread(); in proc_usynch_get_requested_thread_qos()
200 proc_usynch_thread_qos_add_override_for_resource(task_t task, struct uthread *uth, in proc_usynch_thread_qos_add_override_for_resource() argument
204 thread_t thread = uth ? get_machthread(uth) : THREAD_NULL; in proc_usynch_thread_qos_add_override_for_resource()
212 struct uthread *uth, uint64_t tid, user_addr_t resource, int resource_type) in proc_usynch_thread_qos_remove_override_for_resource() argument
214 thread_t thread = uth ? get_machthread(uth) : THREAD_NULL; in proc_usynch_thread_qos_remove_override_for_resource()
368 uthread_t uth = current_uthread(); in bsdthread_terminate() local
369 struct _bsdthread_terminate *bts = &uth->uu_save.uus_bsdthread_terminate; in bsdthread_terminate()
H A Dworkqueue_internal.h307 void workq_thread_terminate(struct proc *p, struct uthread *uth);
340 bool workq_thread_is_permanently_bound(struct uthread *uth);
344 struct uthread *uth);
352 bool bsdthread_part_of_cooperative_workqueue(struct uthread *uth);
/xnu-11215/tools/lldbmacros/
H A Dworkqueue.py46 def GetWQThreadSummary(th, uth): argument
51 if uth.uu_workq_flags & 0x01: uu_workq_flags.append("NEW")
52 if uth.uu_workq_flags & 0x02:
54 if wq.wq_creator == uth:
63 if uth.uu_workq_flags & 0x04: uu_workq_flags.append("DYING")
72 if uth.uu_workq_flags & 0x80: uu_workq_flags.append("CPU%")
74 kqr = uth.uu_kqr_bound
87 …s} {kq: <#020x} {idle: <10s} {uu_workq_flags: <30s}".format(th=th, uth=uth, thport=uth.uu_workq_th…
186 print(GetWQThreadSummary(GetMachThread(uth), uth))
188 print(GetWQThreadSummary(GetMachThread(uth), uth))
[all …]
H A Dmemory.py1245 uth = GetBSDThread(th)
1247 if hasattr(uth, 'uu_allocsize'): # old style
1248 thmem = uth.uu_allocsize
1249 wqs = uth.uu_wqset
1250 elif hasattr(uth, 'uu_wqstate_sz'): # new style
1251 thmem = uth.uu_wqstate_sz
1252 wqs = uth.uu_wqset
/xnu-11215/bsd/kern/
H A Dkern_fork.c1321 uth->uu_flag |= UT_LP64; in uthread_init()
1431 uth->pth_name = NULL; in uthread_cleanup_name()
1449 if (uth->uu_lowpri_window || uth->uu_throttle_info) { in uthread_cleanup()
1477 if (uth->uu_cdir) { in uthread_cleanup()
1478 vnode_rele(uth->uu_cdir); in uthread_cleanup()
1479 uth->uu_cdir = NULLVP; in uthread_cleanup()
1482 if (uth->uu_selset) { in uthread_cleanup()
1484 uth->uu_selset = NULL; in uthread_cleanup()
1497 if (uth->uu_kqr_bound) { in uthread_cleanup()
1539 if (uth->t_tombstone) { in uthread_destroy()
[all …]
H A Dkern_sig.c537 struct uthread * uth; in clear_procsiglist() local
896 struct uthread *uth; in __disable_threadsignal() local
935 struct uthread *uth; in __pthread_markcancel() local
968 struct uthread *uth; in __pthread_canceled() local
1103 struct uthread *uth; in __pthread_kill() local
1209 struct uthread *uth; in __sigwait_nocancel() local
1307 struct uthread *uth; in sigaltstack() local
1368 uth->uu_sigstk = ss; in sigaltstack()
1944 (((uth->uu_sigmask & mask) == 0) || (uth->uu_sigwait & mask))) { in get_signalthread()
2156 (((uth->uu_sigmask & mask) == 0) || (uth->uu_sigwait & mask)) && in psignal_internal()
[all …]
H A Dkern_proc.c451 uth->uu_proc_refcount = 0; in uthread_reset_proc_refcount()
511 uth->uu_proc_refcount, uth); in uthread_assert_zero_proc_refcount()
558 uthread_t uth; in record_procref() local
560 uth = current_uthread(); in record_procref()
621 uth->uu_wchan = event; in proc_ref_wait()
624 uth->uu_wchan = NULL; in proc_ref_wait()
625 uth->uu_wmesg = NULL; in proc_ref_wait()
1379 if (uth != NULL) { in proc_threadname_kdp()
1380 bsd_getthreadname(uth, buf); in proc_threadname_kdp()
1642 if (uth != NULL) { in proc_thread()
[all …]
H A Dsys_generic.c1277 struct _select *sel = &uth->uu_select; in select_internal()
1335 if (uth->uu_selset == NULL) { in select_internal()
1336 uth->uu_selset = select_set_alloc(); in select_internal()
1358 struct _select *sel = &uth->uu_select; in selprocess()
1385 uth->uu_selset); in selprocess()
1462 select_set_reset(uth->uu_selset); in selprocess()
1489 uth->uu_sigmask = uth->uu_oldmask; in selprocess()
1490 uth->uu_oldmask = 0; in selprocess()
1491 uth->uu_flag &= ~UT_SAS_OLDMASK; in selprocess()
2026 uthread_t uth = current_uthread(); in seldrop_locked() local
[all …]
H A Dkern_exit.c2141 struct uthread * uth; in proc_exit() local
2146 uth = current_uthread(); in proc_exit()
2226 if (uth->uu_lowpri_window) { in proc_exit()
2848 uthread_t uth; in wait1continue() local
2881 uthread_t uth; in wait4_nocancel() local
2921 uth = current_uthread(); in wait4_nocancel()
2984 uth = current_uthread(); in wait4_nocancel()
3066 uth = current_uthread(); in wait4_nocancel()
3097 uthread_t uth; in waitidcontinue() local
3145 uthread_t uth; in waitid_nocancel() local
[all …]
H A Dkern_event.c620 struct uthread *uth = current_uthread(); in knote_lock_slow() local
634 uth->uu_knlock = knlc; in knote_lock_slow()
645 uth->uu_knlock = NULL; in knote_lock_slow()
5444 assert(uth == current_uthread());
5450 uth->uu_workq_flags &= ~UT_WORKQ_NEW;
8272 uthread_t uth = current_uthread(); local
8273 workq_threadreq_t kqr = uth->uu_kqr_bound;
8363 uthread_t uth = current_uthread(); local
8364 workq_threadreq_t kqr = uth->uu_kqr_bound;
8407 uthread_t uth = current_uthread(); local
[all …]
H A Dproc_info.c920 bsd_hasthreadname(void *uth) in bsd_hasthreadname() argument
922 struct uthread *ut = (struct uthread*)uth; in bsd_hasthreadname()
933 bsd_getthreadname(void *uth, char *buffer) in bsd_getthreadname() argument
935 struct uthread *ut = (struct uthread *)uth; in bsd_getthreadname()
948 bsd_setthreadname(void *uth, uint64_t tid, const char *name) in bsd_setthreadname() argument
950 struct uthread *ut = (struct uthread *)uth; in bsd_setthreadname()
1001 bsd_threadcdir(void * uth, void *vptr, int *vidp) in bsd_threadcdir() argument
1003 struct uthread * ut = (struct uthread *)uth; in bsd_threadcdir()
H A Dtty.c3494 uthread_t uth = current_uthread(); in filt_ttyattach() local
3532 old_wqs = uth->uu_selset; in filt_ttyattach()
3533 uth->uu_selset = SELSPEC_RECORD_MARKER; in filt_ttyattach()
3535 uth->uu_selset = old_wqs; in filt_ttyattach()
H A Dkdebug.c1449 struct uthread *uth = NULL; in _resolve_iterator() local
1454 TAILQ_FOREACH(uth, &proc->p_uthlist, uu_list) { in _resolve_iterator()
1459 map->thread = (uintptr_t)uthread_tid(uth); in _resolve_iterator()
/xnu-11215/bsd/sys/
H A Dbsdtask_info.h122 boolean_t bsd_hasthreadname(void *uth);
123 void bsd_getthreadname(void *uth, char* buffer);
124 void bsd_setthreadname(void *uth, uint64_t tid, const char* buffer);
125 void bsd_threadcdir(void * uth, void *vptr, int *vidp);
H A Duser.h311 #define UU_KEVENT_HISTORY_WRITE_ENTRY(uth, ...) ({ \ argument
312 struct uthread *__uth = (uth); \
H A Deventvar.h469 struct uthread *uth);
H A Devent_private.h740 void (*f_post_register_wait)(struct uthread *uth, struct knote *kn,
/xnu-11215/bsd/dev/dtrace/
H A Ddtrace_ptss.c290 struct uthread* uth; in dtrace_ptss_enable() local
296 TAILQ_FOREACH(uth, &p->p_uthlist, uu_list) { in dtrace_ptss_enable()
297 uth->t_dtrace_scratch = dtrace_ptss_claim_entry_locked(p); in dtrace_ptss_enable()
/xnu-11215/osfmk/kern/
H A Dthread.h1621 extern void uthread_set_exec_data(struct uthread *uth, struct image_params *imgp);
1622 extern bool uthread_is64bit(struct uthread *uth) __pure2;
1628 #define uthread_init_proc_refcount(uth) ((void)(uth)) argument
1629 #define uthread_destroy_proc_refcount(uth) ((void)(uth)) argument
1630 #define uthread_assert_zero_proc_refcount(uth) ((void)(uth)) argument
H A Dthread.c281 extern bool bsdthread_part_of_cooperative_workqueue(struct uthread *uth);
1106 struct uthread *uth = get_bsdthread_info(thread); in thread_terminate_queue_invoke() local
1107 mach_port_name_t kport = uthread_joiner_port(uth); in thread_terminate_queue_invoke()
1118 uthread_joiner_address(uth)); in thread_terminate_queue_invoke()
1119 uthread_joiner_wake(task, uth); in thread_terminate_queue_invoke()
3041 struct uthread *uth) in uthread_tid() argument
3043 if (uth) { in uthread_tid()
3044 return thread_tid(get_machthread(uth)); in uthread_tid()
3619 struct uthread *uth = get_bsdthread_info(thread); in thread_supports_cooperative_workqueue() local
3625 bsdthread_part_of_cooperative_workqueue(uth); in thread_supports_cooperative_workqueue()
H A Dbsd_kern.c186 get_machthread(struct uthread *uth) in get_machthread() argument
188 return (struct thread *)((uintptr_t)uth - sizeof(struct thread)); in get_machthread()
/xnu-11215/bsd/vfs/
H A Dkpi_vfs.c1303 uthread_t uth; in vfs_context_is64bit() local
1307 uth = get_bsdthread_info(t); in vfs_context_is64bit()
1309 uth = current_uthread(); in vfs_context_is64bit()
1311 return uthread_is64bit(uth); in vfs_context_is64bit()
1355 uthread_t uth; in vfs_context_allow_fs_blksize_nocache_write() local
1363 uth = get_bsdthread_info(t); in vfs_context_allow_fs_blksize_nocache_write()
1364 if (uth && (uth->uu_flag & UT_FS_BLKSIZE_NOCACHE_WRITES)) { in vfs_context_allow_fs_blksize_nocache_write()
1541 uthread_t uth = get_bsdthread_info(t); in vfs_context_cwd() local
1548 if ((cwd = uth->uu_cdir) == NULLVP && in vfs_context_cwd()
/xnu-11215/bsd/miscfs/specfs/
H A Dspec_vnops.c3014 uthread_t uth = current_uthread(); in filt_spec_common() local
3038 old_wqs = uth->uu_selset; in filt_spec_common()
3039 uth->uu_selset = SELSPEC_RECORD_MARKER; in filt_spec_common()
3041 uth->uu_selset = old_wqs; in filt_spec_common()
/xnu-11215/bsd/net/
H A Ddlil.c7705 struct uthread *uth = current_uthread(); in net_thread_marks_push() local
7707 pop = push & ~uth->uu_network_marks; in net_thread_marks_push()
7709 uth->uu_network_marks |= pop; in net_thread_marks_push()
7723 struct uthread *uth = current_uthread(); in net_thread_unmarks_push() local
7725 unpop = unpush & uth->uu_network_marks; in net_thread_unmarks_push()
7727 uth->uu_network_marks &= ~unpop; in net_thread_unmarks_push()
7742 struct uthread *uth = current_uthread(); in net_thread_marks_pop() local
7746 uth->uu_network_marks &= ~pop; in net_thread_marks_pop()
7758 struct uthread *uth = current_uthread(); in net_thread_unmarks_pop() local
7771 return uth->uu_network_marks & check; in net_thread_is_marked()
[all …]

12