Lines Matching defs:tid
535 pid_t tid;
594 * Return tid to parent thread and copy it out to userspace
596 *retval = tid = p->p_tid + THREAD_PID_OFFSET;
598 if (copyout(&tid, tidptr, sizeof(tid)))
615 /* Find an unused tid */
619 pid_t tid;
623 tid = 1 + (arc4random() & TID_MASK);
624 } while (tfind(tid) != NULL);
626 return (tid);