Lines Matching defs:tty
9 #define tty_msg(fn, tty, f, ...) \
10 fn("%s %s: " f, tty_driver_name(tty), tty_name(tty), ##__VA_ARGS__)
12 #define tty_debug(tty, f, ...) tty_msg(pr_debug, tty, f, ##__VA_ARGS__)
13 #define tty_info(tty, f, ...) tty_msg(pr_info, tty, f, ##__VA_ARGS__)
14 #define tty_notice(tty, f, ...) tty_msg(pr_notice, tty, f, ##__VA_ARGS__)
15 #define tty_warn(tty, f, ...) tty_msg(pr_warn, tty, f, ##__VA_ARGS__)
16 #define tty_err(tty, f, ...) tty_msg(pr_err, tty, f, ##__VA_ARGS__)
18 #define tty_info_ratelimited(tty, f, ...) \
19 tty_msg(pr_info_ratelimited, tty, f, ##__VA_ARGS__)
22 * Lock subclasses for tty locks
28 * tty locks which use nested locking:
30 * legacy_mutex - Nested tty locks are necessary for releasing pty pairs.
44 /* Values for tty->flow_change */
48 static inline void __tty_set_flow_change(struct tty_struct *tty, int val)
50 tty->flow_change = val;
53 static inline void tty_set_flow_change(struct tty_struct *tty, int val)
55 tty->flow_change = val;
59 int tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout);
60 void tty_ldisc_unlock(struct tty_struct *tty);
62 int __tty_check_change(struct tty_struct *tty, int sig);
63 int tty_check_change(struct tty_struct *tty);
64 void __stop_tty(struct tty_struct *tty);
65 void __start_tty(struct tty_struct *tty);
66 void tty_write_unlock(struct tty_struct *tty);
67 int tty_write_lock(struct tty_struct *tty, bool ndelay);
68 void tty_vhangup_session(struct tty_struct *tty);
69 void tty_open_proc_set_tty(struct file *filp, struct tty_struct *tty);
70 int tty_signal_session_leader(struct tty_struct *tty, int exit_session);
73 void tty_buffer_flush(struct tty_struct *tty, struct tty_ldisc *ld);
80 void tty_ldisc_hangup(struct tty_struct *tty, bool reset);
81 int tty_ldisc_reinit(struct tty_struct *tty, int disc);
83 long tty_jobctrl_ioctl(struct tty_struct *tty, struct tty_struct *real_tty,
88 void tty_add_file(struct tty_struct *tty, struct file *file);
92 #define tty_is_writelocked(tty) (mutex_is_locked(&tty->atomic_write_lock))
94 int tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty);
95 void tty_ldisc_release(struct tty_struct *tty);
96 int __must_check tty_ldisc_init(struct tty_struct *tty);
97 void tty_ldisc_deinit(struct tty_struct *tty);
103 void tty_audit_add_data(struct tty_struct *tty, const void *data, size_t size);
104 void tty_audit_tiocsti(struct tty_struct *tty, char ch);
106 static inline void tty_audit_add_data(struct tty_struct *tty, const void *data,
110 static inline void tty_audit_tiocsti(struct tty_struct *tty, char ch)