Lines Matching refs:tty

31 __FBSDID("$FreeBSD: releng/10.2/sys/kern/tty.c 280258 2015-03-19 13:37:36Z rwatson $");
60 #include <sys/tty.h>
70 static MALLOC_DEFINE(M_TTY, "tty", "tty device");
72 static void tty_rel_free(struct tty *tp);
74 static TAILQ_HEAD(, tty) tty_list = TAILQ_HEAD_INITIALIZER(tty_list);
76 SX_SYSINIT(tty_list, &tty_list_sx, "tty list");
105 tty_watermarks(struct tty *tp)
126 tty_drain(struct tty *tp, int leaving)
176 ttydev_enter(struct tty *tp)
190 ttydev_leave(struct tty *tp)
239 struct tty *tp;
269 * Make sure the "tty" and "cua" device cannot be opened at the
337 struct tty *tp = dev->si_drv1;
374 tty_is_ctty(struct tty *tp, struct proc *p)
382 tty_wait_background(struct tty *tp, struct thread *td, int sig)
447 struct tty *tp = dev->si_drv1;
468 struct tty *tp = dev->si_drv1;
506 struct tty *tp = dev->si_drv1;
591 struct tty *tp = dev->si_drv1;
629 struct tty *tp = dev->si_drv1;
650 struct tty *tp = kn->kn_hook;
658 struct tty *tp = kn->kn_hook;
674 struct tty *tp = kn->kn_hook;
682 struct tty *tp = kn->kn_hook;
709 struct tty *tp = dev->si_drv1;
757 struct tty *tp;
789 struct tty *tp = dev->si_drv1;
841 tty_init_termios(struct tty *tp)
857 tty_init_console(struct tty *tp, speed_t s)
878 ttydevsw_defopen(struct tty *tp)
885 ttydevsw_defclose(struct tty *tp)
890 ttydevsw_defoutwakeup(struct tty *tp)
897 ttydevsw_definwakeup(struct tty *tp)
902 ttydevsw_defioctl(struct tty *tp, u_long cmd, caddr_t data, struct thread *td)
909 ttydevsw_defcioctl(struct tty *tp, int unit, u_long cmd, caddr_t data, struct thread *td)
916 ttydevsw_defparam(struct tty *tp, struct termios *t)
938 ttydevsw_defmodem(struct tty *tp, int sigon, int sigoff)
946 ttydevsw_defmmap(struct tty *tp, vm_ooffset_t offset, vm_paddr_t *paddr,
954 ttydevsw_defpktnotify(struct tty *tp, char event)
971 struct tty *
978 struct tty *
981 struct tty *tp;
1001 tp = malloc(sizeof(struct tty), M_TTY, M_WAITOK|M_ZERO);
1031 struct tty *tp = arg;
1055 tty_rel_free(struct tty *tp)
1083 tty_rel_pgrp(struct tty *tp, struct pgrp *pg)
1095 tty_rel_sess(struct tty *tp, struct session *sess)
1109 tty_rel_gone(struct tty *tp)
1130 tty_to_xtty(struct tty *tp, struct xtty *xt)
1154 struct tty *tp;
1188 tty_vmakedevf(struct tty *tp, struct ucred *cred, int flags,
1192 const char *prefix = "tty";
1193 char name[SPECNAMELEN - 3]; /* for "tty" and "cua". */
1199 /* Remove "tty" prefix from devices like PTY's. */
1311 tty_makedevf(struct tty *tp, struct ucred *cred, int flags,
1325 tty_makedev(struct tty *tp, struct ucred *cred, const char *fmt, ...)
1339 tty_signal_sessleader(struct tty *tp, int sig)
1358 tty_signal_pgrp(struct tty *tp, int sig)
1381 tty_wakeup(struct tty *tp, int flags)
1399 tty_wait(struct tty *tp, struct cv *cv)
1421 tty_timedwait(struct tty *tp, struct cv *cv, int hz)
1443 tty_flush(struct tty *tp, int flags)
1460 tty_set_winsize(struct tty *tp, const struct winsize *wsz)
1470 tty_generic_ioctl(struct tty *tp, u_long cmd, void *data, int fflag,
1816 tty_ioctl(struct tty *tp, u_long cmd, void *data, int fflag, struct thread *td)
1833 tty_udev(struct tty *tp)
1842 tty_checkoutq(struct tty *tp)
1850 tty_hiwat_in_block(struct tty *tp)
1870 tty_hiwat_in_unblock(struct tty *tp)
1897 ttyhook_defrint(struct tty *tp, char c, int flags)
1907 ttyhook_register(struct tty **rtp, struct proc *p, int fd,
1910 struct tty *tp;
1983 ttyhook_unregister(struct tty *tp)
2007 struct tty *tp;
2066 SYSINIT(tty, SI_SUB_DRIVERS, SI_ORDER_FIRST, ttyconsdev_init, NULL);
2180 DB_SHOW_COMMAND(tty, db_show_tty)
2182 struct tty *tp;
2185 db_printf("usage: show tty <addr>\n");
2188 tp = (struct tty *)addr;
2229 db_printf(" count %u leader %p tty %p sid %d login %s",
2243 struct tty *tp;