Lines Matching refs:tty
12 #include <linux/tty.h>
13 #include "tty.h"
99 tty_audit_log("tty", buf->dev, buf->data, buf->valid);
137 void tty_audit_tiocsti(const struct tty_struct *tty, u8 ch)
141 dev = MKDEV(tty->driver->major, tty->driver->minor_start) + tty->index;
152 * Returns 0 if success, -EPERM if tty audit is disabled
200 * Audit @data of @size from @tty, if necessary.
202 void tty_audit_add_data(const struct tty_struct *tty, const void *data,
207 bool icanon = L_ICANON(tty);
217 if (tty->driver->type == TTY_DRIVER_TYPE_PTY
218 && tty->driver->subtype == PTY_TYPE_MASTER)
221 if ((~audit_tty & AUDIT_TTY_LOG_PASSWD) && icanon && !L_ECHO(tty))
229 dev = MKDEV(tty->driver->major, tty->driver->minor_start) + tty->index;