Lines Matching refs:tty

66  *	@(#)tty.h	8.6 (Berkeley) 1/21/94
108 * Per-tty structure.
110 * Should be split in two, into device and tty drivers.
114 struct tty {
115 lck_mtx_t t_lock; /* Per tty lock */
135 void (*t_oproc)(struct tty *);
137 void (*t_stop)(struct tty *, int);
139 int (*t_param)(struct tty *, struct termios *);
150 #define TTY_NULL (struct tty *)0
163 #define TTIPRI 25 /* Sleep priority for tty reads. */
164 #define TTOPRI 26 /* Sleep priority for tty writes. */
183 struct tty;
293 int ttioctl_locked(struct tty *tp, u_long com, caddr_t data, int flag,
296 int ttcompat(struct tty *tp, u_long com, caddr_t data, int flag,
300 void tty_lock(struct tty *tp);
301 void tty_unlock(struct tty *tp);
304 int tputchar(int c, struct tty *tp);
305 int ttioctl(struct tty *tp, u_long com, caddr_t data, int flag,
307 int ttread(struct tty *tp, struct uio *uio, int flag);
308 int ttyselect(struct tty *tp, int rw, void * wql, struct proc *p);
310 void ttsetwater(struct tty *tp);
312 int ttstart(struct tty *tp);
313 void ttwakeup(struct tty *tp);
314 int ttwrite(struct tty *tp, struct uio *uio, int flag);
315 void ttwwakeup(struct tty *tp);
316 void ttyblock(struct tty *tp);
317 int ttycheckoutq(struct tty *tp, int wait);
318 int ttyclose(struct tty *tp); /* LEGACY: avoid using */
319 void ttyflush(struct tty *tp, int rw);
320 void ttyinfo(struct tty *tp);
321 void ttyinfo_locked(struct tty *tp);
322 int ttyinput(int c, struct tty *tp);
323 int ttylclose(struct tty *tp, int flag);
324 int ttymodem(struct tty *tp, int flag);
325 int ttyopen(dev_t device, struct tty *tp);
326 int ttysleep(struct tty *tp,
328 int ttywait(struct tty *tp);
329 struct tty *ttymalloc(void);
330 void ttyfree(struct tty *);
331 void ttysetpgrphup(struct tty *tp);
332 void ttyclrpgrphup(struct tty *tp);