Lines Matching defs:tty
3 * n_tracerouter.c - Trace data router through tty space
21 #include <linux/tty.h>
41 * kref_tty holds the tty reference the ldisc sits on top of.
49 /* lock for when tty reference is being used */
53 * n_tracerouter_open() - Called when a tty is opened by a SW entity.
54 * @tty: terminal device to the ldisc.
61 static int n_tracerouter_open(struct tty_struct *tty)
68 tr_data->kref_tty = tty_kref_get(tty);
73 tty->disc_data = tr_data;
74 tty->receive_room = RECEIVE_ROOM;
75 tty_driver_flush_buffer(tty);
85 * @tty: terminal device to the ldisc.
89 static void n_tracerouter_close(struct tty_struct *tty)
91 struct tracerouter_data *tptr = tty->disc_data;
95 tty_driver_flush_buffer(tty);
99 tty->disc_data = NULL;
105 * @tty: terminal device passed into the ldisc.
120 static ssize_t n_tracerouter_read(struct tty_struct *tty, struct file *file,
129 * @tty: terminal device passed into the ldisc.
146 static ssize_t n_tracerouter_write(struct tty_struct *tty, struct file *file,
153 * @tty: terminal device passed into the ldisc. It's assumed
154 * tty will never be NULL.
163 static void n_tracerouter_receivebuf(struct tty_struct *tty,
205 /* Note N_TRACEROUTER is defined in linux/tty.h */