Lines Matching defs:thr
637 kdb_thr_ctx(struct thread *thr)
643 if (thr == curthread)
648 if (pc->pc_curthread == thr &&
653 return (thr->td_pcb);
660 struct thread *thr;
669 thr = FIRST_THREAD_IN_PROC(p);
670 if (thr != NULL)
671 return (thr);
692 struct thread *thr;
694 thr = kdb_thr_first();
695 while (thr != NULL && thr->td_tid != tid)
696 thr = kdb_thr_next(thr);
697 return (thr);
701 kdb_thr_next(struct thread *thr)
706 p = thr->td_proc;
707 thr = TAILQ_NEXT(thr, td_plist);
708 if (thr != NULL)
709 return (thr);
720 thr = FIRST_THREAD_IN_PROC(p);
721 if (thr != NULL)
722 return (thr);
727 kdb_thr_select(struct thread *thr)
729 if (thr == NULL)
731 kdb_thread = thr;
732 kdb_thrctx = kdb_thr_ctx(thr);