Lines Matching defs:tty
3 * n_tracesink.c - Trace data router and sink path through tty space.
11 * to a user-desired tty port, like USB.
23 #include <linux/tty.h>
40 * to a tty from anyone calling his kernel API, which
45 * would crash the system if tty is not checked.
51 * n_tracesink_open() - Called when a tty is opened by a SW entity.
52 * @tty: terminal device to the ldisc.
56 * -EFAULT = couldn't get a tty kref n_tracesink will sit
64 static int n_tracesink_open(struct tty_struct *tty)
70 this_tty = tty_kref_get(tty);
74 tty->disc_data = this_tty;
75 tty_driver_flush_buffer(tty);
86 * @tty: terminal device to the ldisc.
90 static void n_tracesink_close(struct tty_struct *tty)
93 tty_driver_flush_buffer(tty);
96 tty->disc_data = NULL;
102 * @tty: terminal device passed into the ldisc.
117 static ssize_t n_tracesink_read(struct tty_struct *tty, struct file *file,
126 * @tty: terminal device passed into the ldisc.
143 static ssize_t n_tracesink_write(struct tty_struct *tty, struct file *file,
153 * @buf: Trace debuging data buffer to write to tty target
158 * Caveat: If this line discipline does not set the tty it sits
160 * call the tty's write() call because it will have no pointer
202 /* Note N_TRACESINK is defined in linux/tty.h */