Lines Matching defs: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;
292 int ttioctl_locked(struct tty *tp, u_long com, caddr_t data, int flag,
295 int ttcompat(struct tty *tp, u_long com, caddr_t data, int flag,
299 void tty_lock(struct tty *tp);
300 void tty_unlock(struct tty *tp);
303 int tputchar(int c, struct tty *tp);
304 int ttioctl(struct tty *tp, u_long com, caddr_t data, int flag,
306 int ttread(struct tty *tp, struct uio *uio, int flag);
307 int ttyselect(struct tty *tp, int rw, void * wql, struct proc *p);
309 void ttsetwater(struct tty *tp);
311 int ttstart(struct tty *tp);
312 void ttwakeup(struct tty *tp);
313 int ttwrite(struct tty *tp, struct uio *uio, int flag);
314 void ttwwakeup(struct tty *tp);
315 void ttyblock(struct tty *tp);
316 int ttycheckoutq(struct tty *tp, int wait);
317 int ttyclose(struct tty *tp); /* LEGACY: avoid using */
318 void ttyflush(struct tty *tp, int rw);
319 void ttyinfo(struct tty *tp);
320 void ttyinfo_locked(struct tty *tp);
321 int ttyinput(int c, struct tty *tp);
322 int ttylclose(struct tty *tp, int flag);
323 int ttymodem(struct tty *tp, int flag);
324 int ttyopen(dev_t device, struct tty *tp);
325 int ttysleep(struct tty *tp,
327 int ttywait(struct tty *tp);
328 struct tty *ttymalloc(void);
329 void ttyfree(struct tty *);