Lines Matching refs:tid

76 #define	TIDHASH(tid, udp)	(tid & (udp)->hash_mask)  argument
499 find_lwpp(thread_t tid) in find_lwpp() argument
502 int ix = TIDHASH(tid, udp); in find_lwpp()
507 if (tid == 0) in find_lwpp()
514 if (ulwp->ul_lwpid == tid) in find_lwpp()
539 find_lwp(thread_t tid) in find_lwp() argument
546 if (self->ul_lwpid == tid) { in find_lwp()
549 } else if ((ulwpp = find_lwpp(tid)) != NULL) { in find_lwp()
569 thread_t tid; in _thrp_create() local
675 (error = __lwp_create(&uc, lwp_flags, &tid)) != 0) { in _thrp_create()
688 *new_thread = tid; in _thrp_create()
691 ulwp->ul_lwpid = tid; in _thrp_create()
712 self->ul_td_evbuf.eventdata = (void *)(uintptr_t)tid; in _thrp_create()
719 (void) pthread_setname_np(tid, name); in _thrp_create()
722 (void) _thrp_continue(tid, TSTP_REGULAR); in _thrp_create()
994 _thrp_join(thread_t tid, thread_t *departed, void **status, int do_cancel) in _thrp_join() argument
1006 error = lwp_wait(tid, &found); in _thrp_join()
1008 while ((error = __lwp_wait(tid, &found)) == EINTR) in _thrp_join()
1081 thr_join(thread_t tid, thread_t *departed, void **status) in thr_join() argument
1083 int error = _thrp_join(tid, departed, status, 1); in thr_join()
1095 pthread_join(pthread_t tid, void **status) in pthread_join() argument
1097 return ((tid == 0)? ESRCH : _thrp_join(tid, NULL, status, 1)); in pthread_join()
1101 pthread_detach(pthread_t tid) in pthread_detach() argument
1108 if ((ulwpp = find_lwpp(tid)) == NULL) in pthread_detach()
1114 error = _thrp_join(tid, NULL, NULL, 0); in pthread_detach()
1116 error = __lwp_detach(tid); in pthread_detach()
1851 thread_t tid = ulwp->ul_lwpid; in safe_suspend() local
1871 (void) ___lwp_suspend(tid); in safe_suspend()
1909 if (ulwp->ul_lwpid == tid) in safe_suspend()
1927 ASSERT(ulwp->ul_lwpid == tid); in safe_suspend()
1929 (void) ___lwp_suspend(tid); in safe_suspend()
1946 _thrp_suspend(thread_t tid, uchar_t whystopped) in _thrp_suspend() argument
1961 if (tid != self->ul_lwpid) in _thrp_suspend()
1964 if ((ulwp = find_lwp(tid)) == NULL) in _thrp_suspend()
2032 (void) ___lwp_suspend(tid); in _thrp_suspend()
2052 if (tid != self->ul_lwpid) in _thrp_suspend()
2130 _thrp_continue(thread_t tid, uchar_t whystopped) in _thrp_continue() argument
2145 if ((ulwp = find_lwp(tid)) == NULL) { in _thrp_continue()
2171 thr_suspend(thread_t tid) in thr_suspend() argument
2173 return (_thrp_suspend(tid, TSTP_REGULAR)); in thr_suspend()
2177 thr_continue(thread_t tid) in thr_continue() argument
2179 return (_thrp_continue(tid, TSTP_REGULAR)); in thr_continue()
2191 thr_kill(thread_t tid, int sig) in thr_kill() argument
2195 return (_lwp_kill(tid, sig)); in thr_kill()
2403 lwpname_path(pthread_t tid, char *buf, size_t bufsize) in lwpname_path() argument
2406 ultos((uint64_t)tid, 10, buf + strlen(buf)); in lwpname_path()
2412 thr_setname(pthread_t tid, const char *name) in thr_setname() argument
2428 lwpname_path(tid, path, sizeof (path)); in thr_setname()
2449 thr_getname(pthread_t tid, char *buf, size_t bufsize) in thr_getname() argument
2461 lwpname_path(tid, path, sizeof (path)); in thr_getname()
2501 thr_getstate(thread_t tid, int *flag, lwpid_t *lwp, stack_t *ss, gregset_t rs) in thr_getstate() argument
2510 if (tid == 0 || self->ul_lwpid == tid) { in thr_getstate()
2513 } else if ((ulwpp = find_lwpp(tid)) != NULL) { in thr_getstate()
2534 *lwp = tid; in thr_getstate()
2548 thr_setstate(thread_t tid, int flag, gregset_t rs) in thr_setstate() argument
2554 if ((ulwp = find_lwp(tid)) == NULL) in thr_setstate()
2580 getlwpstatus(thread_t tid, struct lwpstatus *sp) in getlwpstatus() argument
2588 ultos((uint64_t)tid, 10, buf + strlen(buf)); in getlwpstatus()
2604 putlwpregs(thread_t tid, prgregset_t prp) in putlwpregs() argument
2615 ultos((uint64_t)tid, 10, buf + strlen(buf)); in putlwpregs()
2638 gettsp_slow(thread_t tid) in gettsp_slow() argument
2643 if (getlwpstatus(tid, &status) != 0) { in gettsp_slow()
2646 ultos((uint64_t)tid, 10, buf + strlen(buf)); in gettsp_slow()
2654 __gettsp(thread_t tid) in __gettsp() argument
2660 if ((ulwp = find_lwp(tid)) == NULL) in __gettsp()
2668 result = gettsp_slow(tid); in __gettsp()
2691 thr_setmutator(thread_t tid, int enabled) in thr_setmutator() argument
2701 if (tid == 0) { in thr_setmutator()
2704 } else if ((ulwp = find_lwp(tid)) == NULL) { in thr_setmutator()
2833 thr_suspend_mutator(thread_t tid) in thr_suspend_mutator() argument
2835 if (tid == 0) in thr_suspend_mutator()
2836 tid = curthread->ul_lwpid; in thr_suspend_mutator()
2837 return (_thrp_suspend(tid, TSTP_MUTATOR)); in thr_suspend_mutator()
2886 thr_continue_mutator(thread_t tid) in thr_continue_mutator() argument
2888 return (_thrp_continue(tid, TSTP_MUTATOR)); in thr_continue_mutator()
2893 thr_wait_mutator(thread_t tid, int dontwait) in thr_wait_mutator() argument
2902 if ((ulwp = find_lwp(tid)) == NULL) { in thr_wait_mutator()