Lines Matching refs:retthreadp
142 kthread_t *retthreadp;
434 retthreadp = curthread;
438 retthreadp = NULL;
441 pcmpargs.pcmp_retthreadp = &retthreadp;
450 if (retthreadp != NULL)
481 retthreadp = NULL;
484 pcmpargs.pcmp_retthreadp = &retthreadp;
505 * p_lock held for the ttoproc(retthreadp). This
508 * i.e. retthreadp has to be a valid pointer.
514 * as the process in which retthreadp is a
517 if ((retthreadp != NULL) &&
518 (ttoproc(retthreadp) != curproc) &&
522 ASSERT(retthreadp == NULL ||
523 MUTEX_HELD(&(ttoproc(retthreadp)->p_lock)));
527 if (retthreadp != NULL)
529 mutex_exit(&(ttoproc(retthreadp)->p_lock));
540 if (initpp != NULL && retthreadp != NULL &&
541 ttoproc(retthreadp) != initpp) {
560 if (retthreadp == NULL) {
575 if (retthreadp != NULL)
577 &(ttoproc(retthreadp)->p_lock));
583 ASSERT(retthreadp == NULL ||
584 MUTEX_HELD(&(ttoproc(retthreadp)->p_lock)));
586 * It is possible to have retthreadp == NULL. Proccmp()
588 * setting a value for retthreadp.
590 if (retthreadp == NULL) {
597 parmsget(retthreadp, &pcparms);
608 saved_pid = ttoproc(retthreadp)->p_pid;
609 mutex_exit(&(ttoproc(retthreadp)->p_lock));