Lines Matching defs:tty
61 #include <sys/tty.h>
105 struct tty *tty;
199 pca.tty = p->p_session->s_ttyp;
202 if (pca.tty == NULL) {
209 tty_lock(pca.tty);
212 tty_unlock(pca.tty);
234 struct tty *tp = NULL;
257 pca.tty = tp;
260 if (pca.tty != NULL)
261 tty_lock(pca.tty);
264 if (pca.tty != NULL)
265 tty_unlock(pca.tty);
281 pca.tty = NULL;
493 struct tty *tp = ap->tty;
496 /* Don't use the tty code after a panic or while in ddb. */