Home
last modified time | relevance | path

Searched refs:constty (Results 1 – 6 of 6) sorted by relevance

/xnu-8796.121.2/bsd/dev/arm/
H A Dcons.c23 struct tty *constty; /* current console device */ variable
44 if (constty) { in cndev()
45 return constty->t_dev; in cndev()
96 if ((unsigned) cmd == TIOCCONS && constty) { in cnioctl()
101 constty = NULL; in cnioctl()
/xnu-8796.121.2/bsd/dev/i386/
H A Dcons.c58 struct tty *constty; /* current console device */ variable
79 if (constty) { in cndev()
80 return constty->t_dev; in cndev()
132 if ((unsigned) cmd == TIOCCONS && constty) { in cnioctl()
135 constty = NULL; in cnioctl()
/xnu-8796.121.2/bsd/kern/
H A Dsubr_prf.c126 extern struct tty *constty; /* pointer to console "window" tty */
381 constty = 0; in putchar()
383 if ((pca->flags & TOCONS) && pca->tty == NULL && constty) { in putchar()
384 pca->tty = constty; in putchar()
388 (pca->flags & TOCONS) && pca->tty == constty) { in putchar()
389 constty = 0; in putchar()
397 if ((pca->flags & TOCONS) && constty == 0 && c != '\0') { in putchar()
H A Dtty.c346 if (constty == tp) { in ttyclose()
347 constty = NULL; in ttyclose()
1109 if (constty && constty != tp && in ttioctl_locked()
1110 ISSET(constty->t_state, TS_CONNECTED)) { in ttioctl_locked()
1117 constty = tp; in ttioctl_locked()
1118 } else if (tp == constty) { in ttioctl_locked()
1119 constty = NULL; in ttioctl_locked()
1121 if (constty) { in ttioctl_locked()
1122 (*cdevsw[major(constty->t_dev)].d_ioctl) in ttioctl_locked()
1123 (constty->t_dev, KMIOCDISABLCONS, NULL, 0, p); in ttioctl_locked()
H A Dtty_dev.c534 if (constty == tp) { in ptcclose()
535 constty = NULL; in ptcclose()
/xnu-8796.121.2/bsd/machine/
H A Dcons.h61 extern struct tty *constty; /* current console device */