/kernel/linux/linux-6.6/include/linux/ |
H A D | tty.h | 15 #include <uapi/linux/tty.h> 35 #define INTR_CHAR(tty) ((tty)->termios.c_cc[VINTR]) 36 #define QUIT_CHAR(tty) ((tty)->termios.c_cc[VQUIT]) 37 #define ERASE_CHAR(tty) ((tty)->termios.c_cc[VERASE]) 38 #define KILL_CHAR(tty) ((tty)->termios.c_cc[VKILL]) 39 #define EOF_CHAR(tty) ((tt 255 struct tty_struct *tty; global() member 327 tty_io_nonblock(struct tty_struct *tty, struct file *file) tty_io_nonblock() argument 333 tty_io_error(struct tty_struct *tty) tty_io_error() argument 338 tty_throttled(struct tty_struct *tty) tty_throttled() argument 359 tty_kref_put(struct tty_struct *tty) tty_kref_put() argument 361 tty_get_pgrp(struct tty_struct *tty) tty_get_pgrp() argument 367 tty_devnum(struct tty_struct *tty) tty_devnum() argument 376 tty_name(const struct tty_struct *tty) tty_name() argument 380 tty_kclose(struct tty_struct *tty) tty_kclose() argument 401 tty_kref_get(struct tty_struct *tty) tty_kref_get() argument 447 tty_get_baud_rate(struct tty_struct *tty) tty_get_baud_rate() argument [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | tty.h | 14 #include <uapi/linux/tty.h> 82 #define INTR_CHAR(tty) ((tty)->termios.c_cc[VINTR]) 83 #define QUIT_CHAR(tty) ((tty)->termios.c_cc[VQUIT]) 84 #define ERASE_CHAR(tty) ((tty)->termios.c_cc[VERASE]) 85 #define KILL_CHAR(tty) ((tty)->termios.c_cc[VKILL]) 86 #define EOF_CHAR(tty) ((tt 208 struct tty_struct *tty; /* Back pointer */ global() member 324 struct tty_struct *tty; global() member 353 tty_io_nonblock(struct tty_struct *tty, struct file *file) tty_io_nonblock() argument 359 tty_io_error(struct tty_struct *tty) tty_io_error() argument 364 tty_throttled(struct tty_struct *tty) tty_throttled() argument 384 tty_kref_put(struct tty_struct *tty) tty_kref_put() argument 386 tty_get_pgrp(struct tty_struct *tty) tty_get_pgrp() argument 392 tty_devnum(struct tty_struct *tty) tty_devnum() argument 401 tty_name(const struct tty_struct *tty) tty_name() argument 405 tty_kclose(struct tty_struct *tty) tty_kclose() argument 426 tty_kref_get(struct tty_struct *tty) tty_kref_get() argument 480 tty_get_baud_rate(struct tty_struct *tty) tty_get_baud_rate() argument [all...] |
/kernel/linux/linux-5.10/drivers/tty/ |
H A D | tty_ldisc.c | 7 #include <linux/tty.h> 22 #include "tty.h" 27 #define tty_ldisc_debug(tty, f, args...) tty_debug(tty, f, ##args) 29 #define tty_ldisc_debug(tty, f, args...) 32 /* lockdep nested classes for tty->ldisc_sem */ 161 static struct tty_ldisc *tty_ldisc_get(struct tty_struct *tty, int disc) in tty_ldisc_get() argument 177 request_module("tty-ldisc-%d", disc); in tty_ldisc_get() 189 ld->tty = tty; in tty_ldisc_get() 263 tty_ldisc_ref_wait(struct tty_struct *tty) tty_ldisc_ref_wait() argument 284 tty_ldisc_ref(struct tty_struct *tty) tty_ldisc_ref() argument 313 __tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout) __tty_ldisc_lock() argument 319 __tty_ldisc_lock_nested(struct tty_struct *tty, unsigned long timeout) __tty_ldisc_lock_nested() argument 325 __tty_ldisc_unlock(struct tty_struct *tty) __tty_ldisc_unlock() argument 330 tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout) tty_ldisc_lock() argument 346 tty_ldisc_unlock(struct tty_struct *tty) tty_ldisc_unlock() argument 355 tty_ldisc_lock_pair_timeout(struct tty_struct *tty, struct tty_struct *tty2, unsigned long timeout) tty_ldisc_lock_pair_timeout() argument 390 tty_ldisc_lock_pair(struct tty_struct *tty, struct tty_struct *tty2) tty_ldisc_lock_pair() argument 395 tty_ldisc_unlock_pair(struct tty_struct *tty, struct tty_struct *tty2) tty_ldisc_unlock_pair() argument 411 tty_ldisc_flush(struct tty_struct *tty) tty_ldisc_flush() argument 437 tty_set_termios_ldisc(struct tty_struct *tty, int disc) tty_set_termios_ldisc() argument 458 tty_ldisc_open(struct tty_struct *tty, struct tty_ldisc *ld) tty_ldisc_open() argument 483 tty_ldisc_close(struct tty_struct *tty, struct tty_ldisc *ld) tty_ldisc_close() argument 502 tty_ldisc_failto(struct tty_struct *tty, int ld) tty_ldisc_failto() argument 526 tty_ldisc_restore(struct tty_struct *tty, struct tty_ldisc *old) tty_ldisc_restore() argument 553 tty_set_ldisc(struct tty_struct *tty, int disc) tty_set_ldisc() argument 629 tty_ldisc_kill(struct tty_struct *tty) tty_ldisc_kill() argument 650 tty_reset_termios(struct tty_struct *tty) tty_reset_termios() argument 674 tty_ldisc_reinit(struct tty_struct *tty, int disc) tty_ldisc_reinit() argument 717 tty_ldisc_hangup(struct tty_struct *tty, bool reinit) tty_ldisc_hangup() argument 771 tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty) tty_ldisc_setup() argument 799 tty_ldisc_release(struct tty_struct *tty) tty_ldisc_release() argument 829 tty_ldisc_init(struct tty_struct *tty) tty_ldisc_init() argument 845 tty_ldisc_deinit(struct tty_struct *tty) tty_ldisc_deinit() argument [all...] |
H A D | n_tty.c | 38 #include <linux/tty.h> 52 #include "tty.h" 159 static void zero_buffer(struct tty_struct *tty, u8 *buffer, int size) in zero_buffer() argument 161 bool icanon = !!L_ICANON(tty); in zero_buffer() 162 bool no_echo = !L_ECHO(tty); in zero_buffer() 168 static void tty_copy(struct tty_struct *tty, void *to, size_t tail, size_t n) in tty_copy() argument 170 struct n_tty_data *ldata = tty->disc_data; in tty_copy() 175 tty_audit_add_data(tty, from, size); in tty_copy() 177 zero_buffer(tty, from, size); in tty_copy() 183 tty_audit_add_data(tty, fro in tty_copy() 200 n_tty_kick_worker(struct tty_struct *tty) n_tty_kick_worker() argument 220 chars_in_buffer(struct tty_struct *tty) chars_in_buffer() argument 241 n_tty_write_wakeup(struct tty_struct *tty) n_tty_write_wakeup() argument 247 n_tty_check_throttle(struct tty_struct *tty) n_tty_check_throttle() argument 271 n_tty_check_unthrottle(struct tty_struct *tty) n_tty_check_unthrottle() argument 341 n_tty_packet_mode_flush(struct tty_struct *tty) n_tty_packet_mode_flush() argument 367 n_tty_flush_buffer(struct tty_struct *tty) n_tty_flush_buffer() argument 400 is_continuation(unsigned char c, struct tty_struct *tty) is_continuation() argument 427 do_output_char(unsigned char c, struct tty_struct *tty, int space) do_output_char() argument 502 process_output(unsigned char c, struct tty_struct *tty) process_output() argument 538 process_output_block(struct tty_struct *tty, const unsigned char *buf, unsigned int nr) process_output_block() argument 622 __process_echoes(struct tty_struct *tty) __process_echoes() argument 768 commit_echoes(struct tty_struct *tty) commit_echoes() argument 797 process_echoes(struct tty_struct *tty) process_echoes() argument 815 flush_echoes(struct tty_struct *tty) flush_echoes() argument 935 echo_char(unsigned char c, struct tty_struct *tty) echo_char() argument 975 eraser(unsigned char c, struct tty_struct *tty) eraser() argument 999 echo_char(KILL_CHAR(tty), tty); eraser() local 1046 echo_char(ERASE_CHAR(tty), tty); eraser() local 1108 __isig(int sig, struct tty_struct *tty) __isig() argument 1117 isig(int sig, struct tty_struct *tty) isig() argument 1165 n_tty_receive_break(struct tty_struct *tty) n_tty_receive_break() argument 1195 n_tty_receive_overrun(struct tty_struct *tty) n_tty_receive_overrun() argument 1219 n_tty_receive_parity_error(struct tty_struct *tty, unsigned char c) n_tty_receive_parity_error() argument 1237 n_tty_receive_signal_char(struct tty_struct *tty, int signal, unsigned char c) n_tty_receive_signal_char() argument 1267 n_tty_receive_char_special(struct tty_struct *tty, unsigned char c) n_tty_receive_char_special() argument 1335 echo_char(read_buf(ldata, tail), tty); n_tty_receive_char_special() local 1403 n_tty_receive_char_inline(struct tty_struct *tty, unsigned char c) n_tty_receive_char_inline() argument 1425 n_tty_receive_char(struct tty_struct *tty, unsigned char c) n_tty_receive_char() argument 1431 n_tty_receive_char_fast(struct tty_struct *tty, unsigned char c) n_tty_receive_char_fast() argument 1450 n_tty_receive_char_closing(struct tty_struct *tty, unsigned char c) n_tty_receive_char_closing() argument 1471 n_tty_receive_char_flagged(struct tty_struct *tty, unsigned char c, char flag) n_tty_receive_char_flagged() argument 1491 n_tty_receive_char_lnext(struct tty_struct *tty, unsigned char c, char flag) n_tty_receive_char_lnext() argument 1507 n_tty_receive_buf_real_raw(struct tty_struct *tty, const unsigned char *cp, char *fp, int count) n_tty_receive_buf_real_raw() argument 1527 n_tty_receive_buf_raw(struct tty_struct *tty, const unsigned char *cp, char *fp, int count) n_tty_receive_buf_raw() argument 1544 n_tty_receive_buf_closing(struct tty_struct *tty, const unsigned char *cp, char *fp, int count) n_tty_receive_buf_closing() argument 1558 n_tty_receive_buf_standard(struct tty_struct *tty, const unsigned char *cp, char *fp, int count) n_tty_receive_buf_standard() argument 1592 n_tty_receive_buf_fast(struct tty_struct *tty, const unsigned char *cp, char *fp, int count) n_tty_receive_buf_fast() argument 1617 __receive_buf(struct tty_struct *tty, const unsigned char *cp, char *fp, int count) __receive_buf() argument 1695 n_tty_receive_buf_common(struct tty_struct *tty, const unsigned char *cp, char *fp, int count, int flow) n_tty_receive_buf_common() argument 1764 n_tty_receive_buf(struct tty_struct *tty, const unsigned char *cp, char *fp, int count) n_tty_receive_buf() argument 1770 n_tty_receive_buf2(struct tty_struct *tty, const unsigned char *cp, char *fp, int count) n_tty_receive_buf2() argument 1790 n_tty_set_termios(struct tty_struct *tty, struct ktermios *old) n_tty_set_termios() argument 1884 n_tty_close(struct tty_struct *tty) n_tty_close() argument 1905 n_tty_open(struct tty_struct *tty) n_tty_open() argument 1927 input_available_p(struct tty_struct *tty, int poll) input_available_p() argument 1957 copy_from_read_buf(struct tty_struct *tty, unsigned char **kbp, size_t *nr) copy_from_read_buf() argument 2013 canon_copy_from_read_buf(struct tty_struct *tty, unsigned char **kbp, size_t *nr) canon_copy_from_read_buf() argument 2082 canon_skip_eof(struct tty_struct *tty) canon_skip_eof() argument 2120 job_control(struct tty_struct *tty, struct file *file) job_control() argument 2153 n_tty_read(struct tty_struct *tty, struct file *file, unsigned char *kbuf, size_t nr, void **cookie, unsigned long offset) n_tty_read() argument 2352 n_tty_write(struct tty_struct *tty, struct file *file, const unsigned char *buf, size_t nr) n_tty_write() argument 2453 n_tty_poll(struct tty_struct *tty, struct file *file, poll_table *wait) n_tty_poll() argument 2499 n_tty_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg) n_tty_ioctl() argument [all...] |
H A D | tty_io.c | 7 * 'tty_io.c' gives an orthogonal feeling to tty's, be they consoles 16 * dynamically allocated only when the tty is open. 19 * between the high-level tty routines (tty_io.c and tty_ioctl.c) and 20 * the low-level tty routines (serial.c, pty.c, console.c). This 31 * Added functionality to the OPOST tty handling. No delays, but all 76 #include <linux/tty.h> 111 #include "tty.h" 115 # define tty_debug_hangup(tty, f, args...) tty_debug(tty, f, ##args) 117 # define tty_debug_hangup(tty, 169 free_tty_struct(struct tty_struct *tty) free_tty_struct() argument 197 tty_add_file(struct tty_struct *tty, struct file *file) tty_add_file() argument 227 struct tty_struct *tty = priv->tty; tty_del_file() local 245 tty_name(const struct tty_struct *tty) tty_name() argument 254 tty_driver_name(const struct tty_struct *tty) tty_driver_name() argument 261 tty_paranoia_check(struct tty_struct *tty, struct inode *inode, const char *routine) tty_paranoia_check() argument 280 check_tty_count(struct tty_struct *tty, const char *routine) check_tty_count() argument 468 struct tty_struct *tty = file_tty(file); tty_show_fdinfo() local 528 tty_wakeup(struct tty_struct *tty) tty_wakeup() argument 567 __tty_hangup(struct tty_struct *tty, int exit_session) __tty_hangup() argument 664 struct tty_struct *tty = do_tty_hangup() local 678 tty_hangup(struct tty_struct *tty) tty_hangup() argument 695 tty_vhangup(struct tty_struct *tty) tty_vhangup() argument 712 struct tty_struct *tty; tty_vhangup_self() local 732 tty_vhangup_session(struct tty_struct *tty) tty_vhangup_session() argument 770 __stop_tty(struct tty_struct *tty) __stop_tty() argument 779 stop_tty(struct tty_struct *tty) stop_tty() argument 801 __start_tty(struct tty_struct *tty) __start_tty() argument 811 start_tty(struct tty_struct *tty) start_tty() argument 846 iterate_tty_read(struct tty_ldisc *ld, struct tty_struct *tty, struct file *file, struct iov_iter *to) iterate_tty_read() argument 921 struct tty_struct *tty = file_tty(file); tty_read() local 945 tty_write_unlock(struct tty_struct *tty) tty_write_unlock() argument 951 tty_write_lock(struct tty_struct *tty, bool ndelay) tty_write_lock() argument 966 do_tty_write( ssize_t (write)struct tty_struct *, struct file *, const unsigned char *, size_t), struct tty_struct *tty, struct file *file, struct iov_iter *from) do_tty_write() argument 1070 tty_write_message(struct tty_struct *tty, char *msg) tty_write_message() argument 1102 struct tty_struct *tty = file_tty(file); file_tty_write() local 1159 tty_send_xchar(struct tty_struct *tty, char ch) tty_send_xchar() argument 1239 struct tty_struct *tty; tty_driver_lookup_tty() local 1264 tty_init_termios(struct tty_struct *tty) tty_init_termios() argument 1286 tty_standard_install(struct tty_driver *driver, struct tty_struct *tty) tty_standard_install() argument 1308 tty_driver_install_tty(struct tty_driver *driver, struct tty_struct *tty) tty_driver_install_tty() argument 1325 tty_driver_remove_tty(struct tty_driver *driver, struct tty_struct *tty) tty_driver_remove_tty() argument 1342 tty_reopen(struct tty_struct *tty) tty_reopen() argument 1404 struct tty_struct *tty; tty_init_dev() local 1480 tty_save_termios(struct tty_struct *tty) tty_save_termios() argument 1507 tty_flush_works(struct tty_struct *tty) tty_flush_works() argument 1534 struct tty_struct *tty = release_one_tty() local 1557 struct tty_struct *tty = container_of(kref, struct tty_struct, kref); queue_release_one_tty() local 1573 tty_kref_put(struct tty_struct *tty) tty_kref_put() argument 1592 release_tty(struct tty_struct *tty, int idx) release_tty() argument 1622 tty_release_checks(struct tty_struct *tty, int idx) tty_release_checks() argument 1664 tty_kclose(struct tty_struct *tty) tty_kclose() argument 1694 tty_release_struct(struct tty_struct *tty, int idx) tty_release_struct() argument 1736 struct tty_struct *tty = file_tty(filp); tty_release() local 1887 struct tty_struct *tty; tty_open_current_tty() local 1976 struct tty_struct *tty; tty_kopen() local 2027 struct tty_struct *tty; tty_open_by_driver() local 2102 struct tty_struct *tty; tty_open() local 2186 struct tty_struct *tty = file_tty(filp); tty_poll() local 2204 struct tty_struct *tty = file_tty(filp); __tty_fasync() local 2239 struct tty_struct *tty = file_tty(filp); tty_fasync() local 2265 tiocsti(struct tty_struct *tty, char __user *p) tiocsti() argument 2297 tiocgwinsz(struct tty_struct *tty, struct winsize __user *arg) tiocgwinsz() argument 2317 tty_do_resize(struct tty_struct *tty, struct winsize *ws) tty_do_resize() argument 2354 tiocswinsz(struct tty_struct *tty, struct winsize __user *arg) tiocswinsz() argument 2415 tiocsetd(struct tty_struct *tty, int __user *p) tiocsetd() argument 2439 tiocgetd(struct tty_struct *tty, int __user *p) tiocgetd() argument 2465 send_break(struct tty_struct *tty, unsigned int duration) send_break() argument 2506 tty_tiocmget(struct tty_struct *tty, int __user *p) tty_tiocmget() argument 2531 tty_tiocmset(struct tty_struct *tty, unsigned int cmd, unsigned __user *p) tty_tiocmset() argument 2561 tty_tiocgicount(struct tty_struct *tty, void __user *arg) tty_tiocgicount() argument 2575 tty_tiocsserial(struct tty_struct *tty, struct serial_struct __user *ss) tty_tiocsserial() argument 2597 tty_tiocgserial(struct tty_struct *tty, struct serial_struct __user *ss) tty_tiocgserial() argument 2615 tty_pair_get_tty(struct tty_struct *tty) tty_pair_get_tty() argument 2628 struct tty_struct *tty = file_tty(file); tty_ioctl() local 2789 compat_tty_tiocsserial(struct tty_struct *tty, struct serial_struct32 __user *ss) compat_tty_tiocsserial() argument 2819 compat_tty_tiocgserial(struct tty_struct *tty, struct serial_struct32 __user *ss) compat_tty_tiocgserial() argument 2846 struct tty_struct *tty = file_tty(file); tty_compat_ioctl() local 2984 __do_SAK(struct tty_struct *tty) __do_SAK() argument 3037 struct tty_struct *tty = do_SAK_work() local 3048 do_SAK(struct tty_struct *tty) do_SAK() argument 3058 tty_get_device(struct tty_struct *tty) tty_get_device() argument 3075 struct tty_struct *tty; alloc_tty_struct() local 3125 tty_put_char(struct tty_struct *tty, unsigned char ch) tty_put_char() argument 3491 tty_devnum(struct tty_struct *tty) tty_devnum() argument [all...] |
H A D | tty_ioctl.c | 16 #include <linux/tty.h> 24 #include "tty.h" 32 # define tty_debug_wait_until_sent(tty, f, args...) tty_debug(tty, f, ##args) 34 # define tty_debug_wait_until_sent(tty, f, args...) do {} while (0) 50 * @tty: terminal 57 int tty_chars_in_buffer(struct tty_struct *tty) in tty_chars_in_buffer() argument 59 if (tty->ops->chars_in_buffer) in tty_chars_in_buffer() 60 return tty->ops->chars_in_buffer(tty); in tty_chars_in_buffer() 77 tty_write_room(struct tty_struct *tty) tty_write_room() argument 93 tty_driver_flush_buffer(struct tty_struct *tty) tty_driver_flush_buffer() argument 110 tty_throttle(struct tty_struct *tty) tty_throttle() argument 135 tty_unthrottle(struct tty_struct *tty) tty_unthrottle() argument 158 tty_throttle_safe(struct tty_struct *tty) tty_throttle_safe() argument 189 tty_unthrottle_safe(struct tty_struct *tty) tty_unthrottle_safe() argument 219 tty_wait_until_sent(struct tty_struct *tty, long timeout) tty_wait_until_sent() argument 244 unset_locked_termios(struct tty_struct *tty, struct ktermios *old) unset_locked_termios() argument 315 tty_set_termios(struct tty_struct *tty, struct ktermios *new_termios) tty_set_termios() argument 363 set_termios(struct tty_struct *tty, void __user *arg, int opt) set_termios() argument 445 copy_termios(struct tty_struct *tty, struct ktermios *kterm) copy_termios() argument 452 copy_termios_locked(struct tty_struct *tty, struct ktermios *kterm) copy_termios_locked() argument 459 get_termio(struct tty_struct *tty, struct termio __user *termio) get_termio() argument 474 get_sgflags(struct tty_struct *tty) get_sgflags() argument 492 get_sgttyb(struct tty_struct *tty, struct sgttyb __user *sgttyb) get_sgttyb() argument 544 set_sgttyb(struct tty_struct *tty, struct sgttyb __user *sgttyb) set_sgttyb() argument 574 get_tchars(struct tty_struct *tty, struct tchars __user *tchars) get_tchars() argument 589 set_tchars(struct tty_struct *tty, struct tchars __user *tchars) set_tchars() argument 608 get_ltchars(struct tty_struct *tty, struct ltchars __user *ltchars) get_ltchars() argument 625 set_ltchars(struct tty_struct *tty, struct ltchars __user *ltchars) set_ltchars() argument 655 tty_change_softcar(struct tty_struct *tty, int arg) tty_change_softcar() argument 685 tty_mode_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg) tty_mode_ioctl() argument 818 __tty_perform_flush(struct tty_struct *tty, unsigned long arg) __tty_perform_flush() argument 844 tty_perform_flush(struct tty_struct *tty, unsigned long arg) tty_perform_flush() argument 859 n_tty_ioctl_helper(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg) n_tty_ioctl_helper() argument [all...] |
H A D | tty.h | 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, 48 __tty_set_flow_change(struct tty_struct *tty, int val) __tty_set_flow_change() argument 53 tty_set_flow_change(struct tty_struct *tty, int val) tty_set_flow_change() argument 106 tty_audit_add_data(struct tty_struct *tty, const void *data, size_t size) tty_audit_add_data() argument 110 tty_audit_tiocsti(struct tty_struct *tty, char ch) tty_audit_tiocsti() argument [all...] |
H A D | pty.c | 13 #include <linux/tty.h> 32 #include "tty.h" 36 # define tty_debug_hangup(tty, f, args...) tty_debug(tty, f, ##args) 38 # define tty_debug_hangup(tty, f, args...) do {} while (0) 47 static void pty_close(struct tty_struct *tty, struct file *filp) in pty_close() argument 49 BUG_ON(!tty); in pty_close() 50 if (tty->driver->subtype == PTY_TYPE_MASTER) in pty_close() 51 WARN_ON(tty->count > 1); in pty_close() 53 if (tty_io_error(tty)) in pty_close() 94 pty_unthrottle(struct tty_struct *tty) pty_unthrottle() argument 112 pty_write(struct tty_struct *tty, const unsigned char *buf, int c) pty_write() argument 130 pty_write_room(struct tty_struct *tty) pty_write_room() argument 145 pty_chars_in_buffer(struct tty_struct *tty) pty_chars_in_buffer() argument 151 pty_set_lock(struct tty_struct *tty, int __user *arg) pty_set_lock() argument 163 pty_get_lock(struct tty_struct *tty, int __user *arg) pty_get_lock() argument 170 pty_set_pktmode(struct tty_struct *tty, int __user *arg) pty_set_pktmode() argument 192 pty_get_pktmode(struct tty_struct *tty, int __user *arg) pty_get_pktmode() argument 199 pty_signal(struct tty_struct *tty, int sig) pty_signal() argument 215 pty_flush_buffer(struct tty_struct *tty) pty_flush_buffer() argument 231 pty_open(struct tty_struct *tty, struct file *filp) pty_open() argument 253 pty_set_termios(struct tty_struct *tty, struct ktermios *old_termios) pty_set_termios() argument 294 pty_resize(struct tty_struct *tty, struct winsize *ws) pty_resize() argument 333 pty_start(struct tty_struct *tty) pty_start() argument 346 pty_stop(struct tty_struct *tty) pty_stop() argument 370 pty_common_install(struct tty_driver *driver, struct tty_struct *tty, bool legacy) pty_common_install() argument 442 pty_cleanup(struct tty_struct *tty) pty_cleanup() argument 450 pty_install(struct tty_driver *driver, struct tty_struct *tty) pty_install() argument 455 pty_remove(struct tty_driver *driver, struct tty_struct *tty) pty_remove() argument 463 pty_bsd_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) pty_bsd_ioctl() argument 484 pty_bsd_compat_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) pty_bsd_compat_ioctl() argument 614 ptm_open_peer(struct file *master, struct tty_struct *tty, int flags) ptm_open_peer() argument 654 pty_unix98_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) pty_unix98_ioctl() argument 676 pty_unix98_compat_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) pty_unix98_compat_ioctl() argument 718 struct tty_struct *tty; pts_unix98_lookup() local 729 pty_unix98_install(struct tty_driver *driver, struct tty_struct *tty) pty_unix98_install() argument 735 pty_unix98_remove(struct tty_driver *driver, struct tty_struct *tty) pty_unix98_remove() argument 750 pty_show_fdinfo(struct tty_struct *tty, struct seq_file *m) pty_show_fdinfo() argument 805 struct tty_struct *tty; ptmx_open() local [all...] |
H A D | tty_mutex.c | 2 #include <linux/tty.h> 7 #include "tty.h" 9 /* Legacy tty mutex glue */ 12 * Getting the big tty mutex. 15 void tty_lock(struct tty_struct *tty) in tty_lock() argument 17 if (WARN(tty->magic != TTY_MAGIC, "L Bad %p\n", tty)) in tty_lock() 19 tty_kref_get(tty); in tty_lock() 20 mutex_lock(&tty->legacy_mutex); in tty_lock() 24 int tty_lock_interruptible(struct tty_struct *tty) in tty_lock_interruptible() argument 37 tty_unlock(struct tty_struct *tty) tty_unlock() argument 46 tty_lock_slave(struct tty_struct *tty) tty_lock_slave() argument 52 tty_unlock_slave(struct tty_struct *tty) tty_unlock_slave() argument 58 tty_set_lock_subclass(struct tty_struct *tty) tty_set_lock_subclass() argument [all...] |
H A D | tty_jobctrl.c | 11 #include <linux/tty.h> 14 #include "tty.h" 24 * @tty: tty to check 32 int __tty_check_change(struct tty_struct *tty, int sig) in __tty_check_change() argument 38 if (current->signal->tty != tty) in __tty_check_change() 44 spin_lock_irqsave(&tty->ctrl_lock, flags); in __tty_check_change() 45 tty_pgrp = tty->pgrp; in __tty_check_change() 46 spin_unlock_irqrestore(&tty in __tty_check_change() 68 tty_check_change(struct tty_struct *tty) tty_check_change() argument 77 struct tty_struct *tty; proc_clear_tty() local 95 __proc_set_tty(struct tty_struct *tty) __proc_set_tty() argument 119 proc_set_tty(struct tty_struct *tty) proc_set_tty() argument 129 tty_open_proc_set_tty(struct file *filp, struct tty_struct *tty) tty_open_proc_set_tty() argument 159 struct tty_struct *tty; get_current_tty() local 192 tty_signal_session_leader(struct tty_struct *tty, int exit_session) tty_signal_session_leader() argument 260 struct tty_struct *tty; disassociate_ctty() local 352 tiocsctty(struct tty_struct *tty, struct file *file, int arg) tiocsctty() argument 407 tty_get_pgrp(struct tty_struct *tty) tty_get_pgrp() argument 452 tiocgpgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t __user *p) tiocgpgrp() argument 479 tiocspgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t __user *p) tiocspgrp() argument 529 tiocgsid(struct tty_struct *tty, struct tty_struct *real_tty, pid_t __user *p) tiocgsid() argument 558 tty_jobctrl_ioctl(struct tty_struct *tty, struct tty_struct *real_tty, struct file *file, unsigned int cmd, unsigned long arg) tty_jobctrl_ioctl() argument [all...] |
/kernel/linux/linux-6.6/drivers/tty/ |
H A D | tty_ldisc.c | 7 #include <linux/tty.h> 22 #include "tty.h" 27 #define tty_ldisc_debug(tty, f, args...) tty_debug(tty, f, ##args) 29 #define tty_ldisc_debug(tty, f, args...) 32 /* lockdep nested classes for tty->ldisc_sem */ 123 * @tty: tty device 139 static struct tty_ldisc *tty_ldisc_get(struct tty_struct *tty, int disc) in tty_ldisc_get() argument 155 request_module("tty in tty_ldisc_get() 239 tty_ldisc_ref_wait(struct tty_struct *tty) tty_ldisc_ref_wait() argument 259 tty_ldisc_ref(struct tty_struct *tty) tty_ldisc_ref() argument 287 __tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout) __tty_ldisc_lock() argument 293 __tty_ldisc_lock_nested(struct tty_struct *tty, unsigned long timeout) __tty_ldisc_lock_nested() argument 299 __tty_ldisc_unlock(struct tty_struct *tty) __tty_ldisc_unlock() argument 304 tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout) tty_ldisc_lock() argument 320 tty_ldisc_unlock(struct tty_struct *tty) tty_ldisc_unlock() argument 329 tty_ldisc_lock_pair_timeout(struct tty_struct *tty, struct tty_struct *tty2, unsigned long timeout) tty_ldisc_lock_pair_timeout() argument 364 tty_ldisc_lock_pair(struct tty_struct *tty, struct tty_struct *tty2) tty_ldisc_lock_pair() argument 369 tty_ldisc_unlock_pair(struct tty_struct *tty, struct tty_struct *tty2) tty_ldisc_unlock_pair() argument 384 tty_ldisc_flush(struct tty_struct *tty) tty_ldisc_flush() argument 407 tty_set_termios_ldisc(struct tty_struct *tty, int disc) tty_set_termios_ldisc() argument 426 tty_ldisc_open(struct tty_struct *tty, struct tty_ldisc *ld) tty_ldisc_open() argument 449 tty_ldisc_close(struct tty_struct *tty, struct tty_ldisc *ld) tty_ldisc_close() argument 467 tty_ldisc_failto(struct tty_struct *tty, int ld) tty_ldisc_failto() argument 491 tty_ldisc_restore(struct tty_struct *tty, struct tty_ldisc *old) tty_ldisc_restore() argument 519 tty_set_ldisc(struct tty_struct *tty, int disc) tty_set_ldisc() argument 599 tty_ldisc_kill(struct tty_struct *tty) tty_ldisc_kill() argument 619 tty_reset_termios(struct tty_struct *tty) tty_reset_termios() argument 641 tty_ldisc_reinit(struct tty_struct *tty, int disc) tty_ldisc_reinit() argument 684 tty_ldisc_hangup(struct tty_struct *tty, bool reinit) tty_ldisc_hangup() argument 737 tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty) tty_ldisc_setup() argument 765 tty_ldisc_release(struct tty_struct *tty) tty_ldisc_release() argument 795 tty_ldisc_init(struct tty_struct *tty) tty_ldisc_init() argument 812 tty_ldisc_deinit(struct tty_struct *tty) tty_ldisc_deinit() argument [all...] |
H A D | n_tty.c | 46 #include <linux/tty.h> 51 #include "tty.h" 161 static void zero_buffer(const struct tty_struct *tty, u8 *buffer, size_t size) in zero_buffer() argument 163 if (L_ICANON(tty) && !L_ECHO(tty)) in zero_buffer() 167 static void tty_copy(const struct tty_struct *tty, void *to, size_t tail, in tty_copy() argument 170 struct n_tty_data *ldata = tty->disc_data; in tty_copy() 175 tty_audit_add_data(tty, from, size); in tty_copy() 177 zero_buffer(tty, from, size); in tty_copy() 183 tty_audit_add_data(tty, fro in tty_copy() 199 n_tty_kick_worker(const struct tty_struct *tty) n_tty_kick_worker() argument 219 chars_in_buffer(const struct tty_struct *tty) chars_in_buffer() argument 234 n_tty_write_wakeup(struct tty_struct *tty) n_tty_write_wakeup() argument 240 n_tty_check_throttle(struct tty_struct *tty) n_tty_check_throttle() argument 264 n_tty_check_unthrottle(struct tty_struct *tty) n_tty_check_unthrottle() argument 336 n_tty_packet_mode_flush(struct tty_struct *tty) n_tty_packet_mode_flush() argument 361 n_tty_flush_buffer(struct tty_struct *tty) n_tty_flush_buffer() argument 393 is_continuation(u8 c, const struct tty_struct *tty) is_continuation() argument 417 do_output_char(u8 c, struct tty_struct *tty, int space) do_output_char() argument 491 process_output(u8 c, struct tty_struct *tty) process_output() argument 526 process_output_block(struct tty_struct *tty, const u8 *buf, unsigned int nr) process_output_block() argument 585 n_tty_process_echo_ops(struct tty_struct *tty, size_t *tail, int space) n_tty_process_echo_ops() argument 701 __process_echoes(struct tty_struct *tty) __process_echoes() argument 755 commit_echoes(struct tty_struct *tty) commit_echoes() argument 784 process_echoes(struct tty_struct *tty) process_echoes() argument 802 flush_echoes(struct tty_struct *tty) flush_echoes() argument 915 echo_char(u8 c, const struct tty_struct *tty) echo_char() argument 953 eraser(u8 c, const struct tty_struct *tty) eraser() argument 977 echo_char(KILL_CHAR(tty), tty); eraser() local 1024 echo_char(ERASE_CHAR(tty), tty); eraser() local 1072 __isig(int sig, struct tty_struct *tty) __isig() argument 1095 isig(int sig, struct tty_struct *tty) isig() argument 1142 n_tty_receive_break(struct tty_struct *tty) n_tty_receive_break() argument 1169 n_tty_receive_overrun(const struct tty_struct *tty) n_tty_receive_overrun() argument 1192 n_tty_receive_parity_error(const struct tty_struct *tty, u8 c) n_tty_receive_parity_error() argument 1211 n_tty_receive_signal_char(struct tty_struct *tty, int signal, u8 c) n_tty_receive_signal_char() argument 1223 n_tty_is_char_flow_ctrl(struct tty_struct *tty, u8 c) n_tty_is_char_flow_ctrl() argument 1243 n_tty_receive_char_flow_ctrl(struct tty_struct *tty, u8 c, bool lookahead_done) n_tty_receive_char_flow_ctrl() argument 1263 n_tty_receive_handle_newline(struct tty_struct *tty, u8 c) n_tty_receive_handle_newline() argument 1274 n_tty_receive_char_canon(struct tty_struct *tty, u8 c) n_tty_receive_char_canon() argument 1307 echo_char(read_buf(ldata, tail), tty); n_tty_receive_char_canon() local 1359 n_tty_receive_char_special(struct tty_struct *tty, u8 c, bool lookahead_done) n_tty_receive_char_special() argument 1428 n_tty_receive_char(struct tty_struct *tty, u8 c) n_tty_receive_char() argument 1450 n_tty_receive_char_closing(struct tty_struct *tty, u8 c, bool lookahead_done) n_tty_receive_char_closing() argument 1470 n_tty_receive_char_flagged(struct tty_struct *tty, u8 c, u8 flag) n_tty_receive_char_flagged() argument 1490 n_tty_receive_char_lnext(struct tty_struct *tty, u8 c, u8 flag) n_tty_receive_char_lnext() argument 1506 n_tty_lookahead_flow_ctrl(struct tty_struct *tty, const u8 *cp, const u8 *fp, size_t count) n_tty_lookahead_flow_ctrl() argument 1527 n_tty_receive_buf_real_raw(const struct tty_struct *tty, const u8 *cp, size_t count) n_tty_receive_buf_real_raw() argument 1546 n_tty_receive_buf_raw(struct tty_struct *tty, const u8 *cp, const u8 *fp, size_t count) n_tty_receive_buf_raw() argument 1563 n_tty_receive_buf_closing(struct tty_struct *tty, const u8 *cp, const u8 *fp, size_t count, bool lookahead_done) n_tty_receive_buf_closing() argument 1576 n_tty_receive_buf_standard(struct tty_struct *tty, const u8 *cp, const u8 *fp, size_t count, bool lookahead_done) n_tty_receive_buf_standard() argument 1615 __receive_buf(struct tty_struct *tty, const u8 *cp, const u8 *fp, size_t count) __receive_buf() argument 1690 n_tty_receive_buf_common(struct tty_struct *tty, const u8 *cp, const u8 *fp, size_t count, bool flow) n_tty_receive_buf_common() argument 1771 n_tty_receive_buf(struct tty_struct *tty, const u8 *cp, const u8 *fp, size_t count) n_tty_receive_buf() argument 1777 n_tty_receive_buf2(struct tty_struct *tty, const u8 *cp, const u8 *fp, size_t count) n_tty_receive_buf2() argument 1795 n_tty_set_termios(struct tty_struct *tty, const struct ktermios *old) n_tty_set_termios() argument 1886 n_tty_close(struct tty_struct *tty) n_tty_close() argument 1907 n_tty_open(struct tty_struct *tty) n_tty_open() argument 1929 input_available_p(const struct tty_struct *tty, int poll) input_available_p() argument 1958 copy_from_read_buf(const struct tty_struct *tty, u8 **kbp, size_t *nr) copy_from_read_buf() argument 2012 canon_copy_from_read_buf(const struct tty_struct *tty, u8 **kbp, size_t *nr) canon_copy_from_read_buf() argument 2117 job_control(struct tty_struct *tty, struct file *file) job_control() argument 2151 n_tty_read(struct tty_struct *tty, struct file *file, u8 *kbuf, size_t nr, void **cookie, unsigned long offset) n_tty_read() argument 2353 n_tty_write(struct tty_struct *tty, struct file *file, const u8 *buf, size_t nr) n_tty_write() argument 2452 n_tty_poll(struct tty_struct *tty, struct file *file, poll_table *wait) n_tty_poll() argument 2498 n_tty_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) n_tty_ioctl() argument [all...] |
H A D | tty_io.c | 7 * 'tty_io.c' gives an orthogonal feeling to tty's, be they consoles 16 * dynamically allocated only when the tty is open. 19 * between the high-level tty routines (tty_io.c and tty_ioctl.c) and 20 * the low-level tty routines (serial.c, pty.c, console.c). This 31 * Added functionality to the OPOST tty handling. No delays, but all 76 #include <linux/tty.h> 112 #include "tty.h" 116 # define tty_debug_hangup(tty, f, args...) tty_debug(tty, f, ##args) 118 # define tty_debug_hangup(tty, 169 free_tty_struct(struct tty_struct *tty) free_tty_struct() argument 196 tty_add_file(struct tty_struct *tty, struct file *file) tty_add_file() argument 227 struct tty_struct *tty = priv->tty; tty_del_file() local 244 tty_name(const struct tty_struct *tty) tty_name() argument 252 tty_driver_name(const struct tty_struct *tty) tty_driver_name() argument 259 tty_paranoia_check(struct tty_struct *tty, struct inode *inode, const char *routine) tty_paranoia_check() argument 273 check_tty_count(struct tty_struct *tty, const char *routine) check_tty_count() argument 458 struct tty_struct *tty = file_tty(file); tty_show_fdinfo() local 515 tty_wakeup(struct tty_struct *tty) tty_wakeup() argument 538 tty_release_redirect(struct tty_struct *tty) tty_release_redirect() argument 577 __tty_hangup(struct tty_struct *tty, int exit_session) __tty_hangup() argument 669 struct tty_struct *tty = do_tty_hangup() local 682 tty_hangup(struct tty_struct *tty) tty_hangup() argument 697 tty_vhangup(struct tty_struct *tty) tty_vhangup() argument 712 struct tty_struct *tty; tty_vhangup_self() local 731 tty_vhangup_session(struct tty_struct *tty) tty_vhangup_session() argument 749 __stop_tty(struct tty_struct *tty) __stop_tty() argument 772 stop_tty(struct tty_struct *tty) stop_tty() argument 782 __start_tty(struct tty_struct *tty) __start_tty() argument 803 start_tty(struct tty_struct *tty) start_tty() argument 813 tty_update_time(struct tty_struct *tty, bool mtime) tty_update_time() argument 846 iterate_tty_read(struct tty_ldisc *ld, struct tty_struct *tty, struct file *file, struct iov_iter *to) iterate_tty_read() argument 916 struct tty_struct *tty = file_tty(file); tty_read() local 942 tty_write_unlock(struct tty_struct *tty) tty_write_unlock() argument 948 tty_write_lock(struct tty_struct *tty, bool ndelay) tty_write_lock() argument 963 iterate_tty_write(struct tty_ldisc *ld, struct tty_struct *tty, struct file *file, struct iov_iter *from) iterate_tty_write() argument 1057 tty_write_message(struct tty_struct *tty, char *msg) tty_write_message() argument 1071 struct tty_struct *tty = file_tty(file); file_tty_write() local 1144 tty_send_xchar(struct tty_struct *tty, char ch) tty_send_xchar() argument 1224 struct tty_struct *tty; tty_driver_lookup_tty() local 1248 tty_init_termios(struct tty_struct *tty) tty_init_termios() argument 1278 tty_standard_install(struct tty_driver *driver, struct tty_struct *tty) tty_standard_install() argument 1299 tty_driver_install_tty(struct tty_driver *driver, struct tty_struct *tty) tty_driver_install_tty() argument 1316 tty_driver_remove_tty(struct tty_driver *driver, struct tty_struct *tty) tty_driver_remove_tty() argument 1333 tty_reopen(struct tty_struct *tty) tty_reopen() argument 1393 struct tty_struct *tty; tty_init_dev() local 1469 tty_save_termios(struct tty_struct *tty) tty_save_termios() argument 1496 tty_flush_works(struct tty_struct *tty) tty_flush_works() argument 1523 struct tty_struct *tty = release_one_tty() local 1545 struct tty_struct *tty = container_of(kref, struct tty_struct, kref); queue_release_one_tty() local 1561 tty_kref_put(struct tty_struct *tty) tty_kref_put() argument 1581 release_tty(struct tty_struct *tty, int idx) release_tty() argument 1611 tty_release_checks(struct tty_struct *tty, int idx) tty_release_checks() argument 1653 tty_kclose(struct tty_struct *tty) tty_kclose() argument 1683 tty_release_struct(struct tty_struct *tty, int idx) tty_release_struct() argument 1724 struct tty_struct *tty = file_tty(filp); tty_release() local 1876 struct tty_struct *tty; tty_open_current_tty() local 1953 struct tty_struct *tty; tty_kopen() local 2039 struct tty_struct *tty; tty_open_by_driver() local 2113 struct tty_struct *tty; tty_open() local 2195 struct tty_struct *tty = file_tty(filp); tty_poll() local 2213 struct tty_struct *tty = file_tty(filp); __tty_fasync() local 2248 struct tty_struct *tty = file_tty(filp); tty_fasync() local 2273 tiocsti(struct tty_struct *tty, char __user *p) tiocsti() argument 2307 tiocgwinsz(struct tty_struct *tty, struct winsize __user *arg) tiocgwinsz() argument 2326 tty_do_resize(struct tty_struct *tty, struct winsize *ws) tty_do_resize() argument 2362 tiocswinsz(struct tty_struct *tty, struct winsize __user *arg) tiocswinsz() argument 2423 tiocsetd(struct tty_struct *tty, int __user *p) tiocsetd() argument 2446 tiocgetd(struct tty_struct *tty, int __user *p) tiocgetd() argument 2470 send_break(struct tty_struct *tty, unsigned int duration) send_break() argument 2510 tty_tiocmget(struct tty_struct *tty, int __user *p) tty_tiocmget() argument 2534 tty_tiocmset(struct tty_struct *tty, unsigned int cmd, unsigned __user *p) tty_tiocmset() argument 2573 tty_get_icount(struct tty_struct *tty, struct serial_icounter_struct *icount) tty_get_icount() argument 2585 tty_tiocgicount(struct tty_struct *tty, void __user *arg) tty_tiocgicount() argument 2599 tty_set_serial(struct tty_struct *tty, struct serial_struct *ss) tty_set_serial() argument 2616 tty_tiocsserial(struct tty_struct *tty, struct serial_struct __user *ss) tty_tiocsserial() argument 2626 tty_tiocgserial(struct tty_struct *tty, struct serial_struct __user *ss) tty_tiocgserial() argument 2644 tty_pair_get_tty(struct tty_struct *tty) tty_pair_get_tty() argument 2657 struct tty_struct *tty = file_tty(file); tty_ioctl() local 2820 compat_tty_tiocsserial(struct tty_struct *tty, struct serial_struct32 __user *ss) compat_tty_tiocsserial() argument 2838 compat_tty_tiocgserial(struct tty_struct *tty, struct serial_struct32 __user *ss) compat_tty_tiocgserial() argument 2865 struct tty_struct *tty = file_tty(file); tty_compat_ioctl() local 3003 __do_SAK(struct tty_struct *tty) __do_SAK() argument 3051 struct tty_struct *tty = do_SAK_work() local 3062 do_SAK(struct tty_struct *tty) do_SAK() argument 3071 tty_get_device(struct tty_struct *tty) tty_get_device() argument 3090 struct tty_struct *tty; alloc_tty_struct() local 3140 tty_put_char(struct tty_struct *tty, unsigned char ch) tty_put_char() argument 3491 tty_devnum(struct tty_struct *tty) tty_devnum() argument [all...] |
H A D | tty_ioctl.c | 17 #include <linux/tty.h> 26 #include "tty.h" 44 * @tty: terminal 51 unsigned int tty_chars_in_buffer(struct tty_struct *tty) in tty_chars_in_buffer() argument 53 if (tty->ops->chars_in_buffer) in tty_chars_in_buffer() 54 return tty->ops->chars_in_buffer(tty); in tty_chars_in_buffer() 61 * @tty: terminal 70 unsigned int tty_write_room(struct tty_struct *tty) in tty_write_room() argument 72 if (tty in tty_write_room() 86 tty_driver_flush_buffer(struct tty_struct *tty) tty_driver_flush_buffer() argument 106 tty_unthrottle(struct tty_struct *tty) tty_unthrottle() argument 130 tty_throttle_safe(struct tty_struct *tty) tty_throttle_safe() argument 161 tty_unthrottle_safe(struct tty_struct *tty) tty_unthrottle_safe() argument 191 tty_wait_until_sent(struct tty_struct *tty, long timeout) tty_wait_until_sent() argument 214 unset_locked_termios(struct tty_struct *tty, const struct ktermios *old) unset_locked_termios() argument 332 tty_set_termios(struct tty_struct *tty, struct ktermios *new_termios) tty_set_termios() argument 456 set_termios(struct tty_struct *tty, void __user *arg, int opt) set_termios() argument 538 copy_termios(struct tty_struct *tty, struct ktermios *kterm) copy_termios() argument 545 copy_termios_locked(struct tty_struct *tty, struct ktermios *kterm) copy_termios_locked() argument 552 get_termio(struct tty_struct *tty, struct termio __user *termio) get_termio() argument 567 get_sgflags(struct tty_struct *tty) get_sgflags() argument 585 get_sgttyb(struct tty_struct *tty, struct sgttyb __user *sgttyb) get_sgttyb() argument 637 set_sgttyb(struct tty_struct *tty, struct sgttyb __user *sgttyb) set_sgttyb() argument 665 get_tchars(struct tty_struct *tty, struct tchars __user *tchars) get_tchars() argument 680 set_tchars(struct tty_struct *tty, struct tchars __user *tchars) set_tchars() argument 699 get_ltchars(struct tty_struct *tty, struct ltchars __user *ltchars) get_ltchars() argument 716 set_ltchars(struct tty_struct *tty, struct ltchars __user *ltchars) set_ltchars() argument 746 tty_change_softcar(struct tty_struct *tty, bool enable) tty_change_softcar() argument 775 tty_mode_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) tty_mode_ioctl() argument 905 __tty_perform_flush(struct tty_struct *tty, unsigned long arg) __tty_perform_flush() argument 931 tty_perform_flush(struct tty_struct *tty, unsigned long arg) tty_perform_flush() argument 946 n_tty_ioctl_helper(struct tty_struct *tty, unsigned int cmd, unsigned long arg) n_tty_ioctl_helper() argument [all...] |
H A D | tty.h | 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_notice(tty, f, ...) tty_msg(pr_notice, tty, f, ##__VA_ARGS__) 14 #define tty_warn(tty, f, ...) tty_msg(pr_warn, tty, f, ##__VA_ARGS__) 15 #define tty_err(tty, 47 __tty_set_flow_change(struct tty_struct *tty, int val) __tty_set_flow_change() argument 52 tty_set_flow_change(struct tty_struct *tty, int val) tty_set_flow_change() argument 106 tty_audit_add_data(const struct tty_struct *tty, const void *data, size_t size) tty_audit_add_data() argument 110 tty_audit_tiocsti(const struct tty_struct *tty, u8 ch) tty_audit_tiocsti() argument [all...] |
H A D | pty.c | 13 #include <linux/tty.h> 32 #include "tty.h" 36 # define tty_debug_hangup(tty, f, args...) tty_debug(tty, f, ##args) 38 # define tty_debug_hangup(tty, f, args...) do {} while (0) 47 static void pty_close(struct tty_struct *tty, struct file *filp) in pty_close() argument 49 if (tty->driver->subtype == PTY_TYPE_MASTER) in pty_close() 50 WARN_ON(tty->count > 1); in pty_close() 52 if (tty_io_error(tty)) in pty_close() 54 if (tty in pty_close() 93 pty_unthrottle(struct tty_struct *tty) pty_unthrottle() argument 111 pty_write(struct tty_struct *tty, const u8 *buf, size_t c) pty_write() argument 129 pty_write_room(struct tty_struct *tty) pty_write_room() argument 137 pty_set_lock(struct tty_struct *tty, int __user *arg) pty_set_lock() argument 150 pty_get_lock(struct tty_struct *tty, int __user *arg) pty_get_lock() argument 158 pty_set_pktmode(struct tty_struct *tty, int __user *arg) pty_set_pktmode() argument 180 pty_get_pktmode(struct tty_struct *tty, int __user *arg) pty_get_pktmode() argument 188 pty_signal(struct tty_struct *tty, int sig) pty_signal() argument 204 pty_flush_buffer(struct tty_struct *tty) pty_flush_buffer() argument 220 pty_open(struct tty_struct *tty, struct file *filp) pty_open() argument 242 pty_set_termios(struct tty_struct *tty, const struct ktermios *old_termios) pty_set_termios() argument 283 pty_resize(struct tty_struct *tty, struct winsize *ws) pty_resize() argument 322 pty_start(struct tty_struct *tty) pty_start() argument 335 pty_stop(struct tty_struct *tty) pty_stop() argument 359 pty_common_install(struct tty_driver *driver, struct tty_struct *tty, bool legacy) pty_common_install() argument 431 pty_cleanup(struct tty_struct *tty) pty_cleanup() argument 439 pty_install(struct tty_driver *driver, struct tty_struct *tty) pty_install() argument 444 pty_remove(struct tty_driver *driver, struct tty_struct *tty) pty_remove() argument 453 pty_bsd_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) pty_bsd_ioctl() argument 474 pty_bsd_compat_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) pty_bsd_compat_ioctl() argument 602 ptm_open_peer(struct file *master, struct tty_struct *tty, int flags) ptm_open_peer() argument 642 pty_unix98_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) pty_unix98_ioctl() argument 664 pty_unix98_compat_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) pty_unix98_compat_ioctl() argument 708 struct tty_struct *tty; pts_unix98_lookup() local 719 pty_unix98_install(struct tty_driver *driver, struct tty_struct *tty) pty_unix98_install() argument 725 pty_unix98_remove(struct tty_driver *driver, struct tty_struct *tty) pty_unix98_remove() argument 740 pty_show_fdinfo(struct tty_struct *tty, struct seq_file *m) pty_show_fdinfo() argument 793 struct tty_struct *tty; ptmx_open() local [all...] |
H A D | tty_jobctrl.c | 11 #include <linux/tty.h> 14 #include "tty.h" 24 * @tty: tty to check 33 int __tty_check_change(struct tty_struct *tty, int sig) in __tty_check_change() argument 39 if (current->signal->tty != tty) in __tty_check_change() 45 spin_lock_irqsave(&tty->ctrl.lock, flags); in __tty_check_change() 46 tty_pgrp = tty->ctrl.pgrp; in __tty_check_change() 47 spin_unlock_irqrestore(&tty in __tty_check_change() 69 tty_check_change(struct tty_struct *tty) tty_check_change() argument 78 struct tty_struct *tty; proc_clear_tty() local 98 __proc_set_tty(struct tty_struct *tty) __proc_set_tty() argument 122 proc_set_tty(struct tty_struct *tty) proc_set_tty() argument 132 tty_open_proc_set_tty(struct file *filp, struct tty_struct *tty) tty_open_proc_set_tty() argument 162 struct tty_struct *tty; get_current_tty() local 196 tty_signal_session_leader(struct tty_struct *tty, int exit_session) tty_signal_session_leader() argument 267 struct tty_struct *tty; disassociate_ctty() local 365 tiocsctty(struct tty_struct *tty, struct file *file, int arg) tiocsctty() argument 421 tty_get_pgrp(struct tty_struct *tty) tty_get_pgrp() argument 466 tiocgpgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t __user *p) tiocgpgrp() argument 493 tiocspgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t __user *p) tiocspgrp() argument 543 tiocgsid(struct tty_struct *tty, struct tty_struct *real_tty, pid_t __user *p) tiocgsid() argument 572 tty_jobctrl_ioctl(struct tty_struct *tty, struct tty_struct *real_tty, struct file *file, unsigned int cmd, unsigned long arg) tty_jobctrl_ioctl() argument [all...] |
H A D | tty_mutex.c | 2 #include <linux/tty.h> 7 #include "tty.h" 9 /* Legacy tty mutex glue */ 12 * Getting the big tty mutex. 15 void tty_lock(struct tty_struct *tty) in tty_lock() argument 17 tty_kref_get(tty); in tty_lock() 18 mutex_lock(&tty->legacy_mutex); in tty_lock() 22 int tty_lock_interruptible(struct tty_struct *tty) in tty_lock_interruptible() argument 26 tty_kref_get(tty); in tty_lock_interruptible() 27 ret = mutex_lock_interruptible(&tty in tty_lock_interruptible() 33 tty_unlock(struct tty_struct *tty) tty_unlock() argument 40 tty_lock_slave(struct tty_struct *tty) tty_lock_slave() argument 46 tty_unlock_slave(struct tty_struct *tty) tty_unlock_slave() argument 52 tty_set_lock_subclass(struct tty_struct *tty) tty_set_lock_subclass() argument [all...] |
/kernel/linux/linux-5.10/drivers/tty/ipwireless/ |
H A D | tty.c | 28 #include <linux/tty.h> 33 #include "tty.h" 91 struct ipw_tty *tty = get_tty(linux_tty->index); in ipw_open() local 93 if (!tty) in ipw_open() 96 mutex_lock(&tty->ipw_tty_mutex); in ipw_open() 97 if (tty->port.count == 0) in ipw_open() 98 tty->tx_bytes_queued = 0; in ipw_open() 100 tty->port.count++; in ipw_open() 102 tty->port.tty in ipw_open() 114 do_ipw_close(struct ipw_tty *tty) do_ipw_close() argument 133 struct ipw_tty *tty = linux_tty->driver_data; ipw_hangup() local 155 ipwireless_tty_received(struct ipw_tty *tty, unsigned char *data, unsigned int length) ipwireless_tty_received() argument 182 struct ipw_tty *tty = callback_data; ipw_write_packet_sent_callback() local 194 struct ipw_tty *tty = linux_tty->driver_data; ipw_write() local 234 struct ipw_tty *tty = linux_tty->driver_data; ipw_write_room() local 254 struct ipw_tty *tty = linux_tty->driver_data; ipwireless_get_serial_info() local 276 struct ipw_tty *tty = linux_tty->driver_data; ipw_chars_in_buffer() local 287 get_control_lines(struct ipw_tty *tty) get_control_lines() argument 306 set_control_lines(struct ipw_tty *tty, unsigned int set, unsigned int clear) set_control_lines() argument 356 struct ipw_tty *tty = linux_tty->driver_data; ipw_tiocmget() local 372 struct ipw_tty *tty = linux_tty->driver_data; ipw_tiocmset() local 387 struct ipw_tty *tty = linux_tty->driver_data; ipw_ioctl() local 514 ipwireless_tty_free(struct ipw_tty *tty) ipwireless_tty_free() argument 609 ipwireless_tty_is_modem(struct ipw_tty *tty) ipwireless_tty_is_modem() argument 615 ipwireless_tty_notify_control_line_change(struct ipw_tty *tty, unsigned int channel_idx, unsigned int control_lines, unsigned int changed_mask) ipwireless_tty_notify_control_line_change() argument [all...] |
/kernel/linux/linux-6.6/drivers/tty/ipwireless/ |
H A D | tty.c | 28 #include <linux/tty.h> 33 #include "tty.h" 90 struct ipw_tty *tty = get_tty(linux_tty->index); in ipw_open() local 92 if (!tty) in ipw_open() 95 mutex_lock(&tty->ipw_tty_mutex); in ipw_open() 96 if (tty->port.count == 0) in ipw_open() 97 tty->tx_bytes_queued = 0; in ipw_open() 99 tty->port.count++; in ipw_open() 101 tty->port.tty in ipw_open() 112 do_ipw_close(struct ipw_tty *tty) do_ipw_close() argument 131 struct ipw_tty *tty = linux_tty->driver_data; ipw_hangup() local 153 ipwireless_tty_received(struct ipw_tty *tty, unsigned char *data, unsigned int length) ipwireless_tty_received() argument 180 struct ipw_tty *tty = callback_data; ipw_write_packet_sent_callback() local 192 struct ipw_tty *tty = linux_tty->driver_data; ipw_write() local 232 struct ipw_tty *tty = linux_tty->driver_data; ipw_write_room() local 252 struct ipw_tty *tty = linux_tty->driver_data; ipwireless_get_serial_info() local 274 struct ipw_tty *tty = linux_tty->driver_data; ipw_chars_in_buffer() local 285 get_control_lines(struct ipw_tty *tty) get_control_lines() argument 304 set_control_lines(struct ipw_tty *tty, unsigned int set, unsigned int clear) set_control_lines() argument 354 struct ipw_tty *tty = linux_tty->driver_data; ipw_tiocmget() local 370 struct ipw_tty *tty = linux_tty->driver_data; ipw_tiocmset() local 385 struct ipw_tty *tty = linux_tty->driver_data; ipw_ioctl() local 512 ipwireless_tty_free(struct ipw_tty *tty) ipwireless_tty_free() argument 601 ipwireless_tty_is_modem(struct ipw_tty *tty) ipwireless_tty_is_modem() argument 607 ipwireless_tty_notify_control_line_change(struct ipw_tty *tty, unsigned int channel_idx, unsigned int control_lines, unsigned int changed_mask) ipwireless_tty_notify_control_line_change() argument [all...] |
/kernel/linux/linux-6.6/drivers/tty/serdev/ |
H A D | serdev-ttyport.c | 7 #include <linux/tty.h> 15 struct tty_struct *tty; member 22 * Callback functions from the tty port. 52 struct tty_struct *tty; in ttyport_write_wakeup() local 54 tty = tty_port_tty_get(port); in ttyport_write_wakeup() 55 if (!tty) in ttyport_write_wakeup() 58 if (test_and_clear_bit(TTY_DO_WRITE_WAKEUP, &tty->flags) && in ttyport_write_wakeup() 63 wake_up_interruptible(&tty->write_wait); in ttyport_write_wakeup() 65 tty_kref_put(tty); in ttyport_write_wakeup() 80 struct tty_struct *tty in ttyport_write_buf() local 92 struct tty_struct *tty = serport->tty; ttyport_write_flush() local 100 struct tty_struct *tty = serport->tty; ttyport_write_room() local 108 struct tty_struct *tty; ttyport_open() local 157 struct tty_struct *tty = serport->tty; ttyport_close() local 172 struct tty_struct *tty = serport->tty; ttyport_set_baudrate() local 186 struct tty_struct *tty = serport->tty; ttyport_set_flow_control() local 201 struct tty_struct *tty = serport->tty; ttyport_set_parity() local 223 struct tty_struct *tty = serport->tty; ttyport_wait_until_sent() local 231 struct tty_struct *tty = serport->tty; ttyport_get_tiocm() local 242 struct tty_struct *tty = serport->tty; ttyport_set_tiocm() local 253 struct tty_struct *tty = serport->tty; ttyport_break_ctl() local [all...] |
/kernel/linux/linux-5.10/drivers/tty/serdev/ |
H A D | serdev-ttyport.c | 7 #include <linux/tty.h> 15 struct tty_struct *tty; member 22 * Callback functions from the tty port. 52 struct tty_struct *tty; in ttyport_write_wakeup() local 54 tty = tty_port_tty_get(port); in ttyport_write_wakeup() 55 if (!tty) in ttyport_write_wakeup() 58 if (test_and_clear_bit(TTY_DO_WRITE_WAKEUP, &tty->flags) && in ttyport_write_wakeup() 63 wake_up_interruptible(&tty->write_wait); in ttyport_write_wakeup() 65 tty_kref_put(tty); in ttyport_write_wakeup() 80 struct tty_struct *tty in ttyport_write_buf() local 92 struct tty_struct *tty = serport->tty; ttyport_write_flush() local 100 struct tty_struct *tty = serport->tty; ttyport_write_room() local 108 struct tty_struct *tty; ttyport_open() local 157 struct tty_struct *tty = serport->tty; ttyport_close() local 172 struct tty_struct *tty = serport->tty; ttyport_set_baudrate() local 186 struct tty_struct *tty = serport->tty; ttyport_set_flow_control() local 201 struct tty_struct *tty = serport->tty; ttyport_set_parity() local 223 struct tty_struct *tty = serport->tty; ttyport_wait_until_sent() local 231 struct tty_struct *tty = serport->tty; ttyport_get_tiocm() local 242 struct tty_struct *tty = serport->tty; ttyport_set_tiocm() local [all...] |
/kernel/linux/linux-6.6/drivers/accessibility/speakup/ |
H A D | spk_ttyio.c | 3 #include <linux/tty.h> 47 static int spk_ttyio_ldisc_open(struct tty_struct *tty) in spk_ttyio_ldisc_open() argument 51 if (tty != speakup_tty) in spk_ttyio_ldisc_open() 55 if (!tty->ops->write) in spk_ttyio_ldisc_open() 64 tty->disc_data = ldisc_data; in spk_ttyio_ldisc_open() 69 static void spk_ttyio_ldisc_close(struct tty_struct *tty) in spk_ttyio_ldisc_close() argument 71 kfree(tty->disc_data); in spk_ttyio_ldisc_close() 74 static size_t spk_ttyio_receive_buf2(struct tty_struct *tty, const u8 *cp, in spk_ttyio_receive_buf2() argument 77 struct spk_ldisc_data *ldisc_data = tty->disc_data; in spk_ttyio_receive_buf2() 135 static inline void get_termios(struct tty_struct *tty, in get_termios() argument 146 struct tty_struct *tty; spk_ttyio_initialise_ldisc() local 226 struct tty_struct *tty = in_synth->dev; spk_ttyio_out() local 272 struct tty_struct *tty = in_synth->dev; spk_ttyio_send_xchar() local 280 struct tty_struct *tty = in_synth->dev; spk_ttyio_tiocmset() local 293 struct tty_struct *tty = in_synth->dev; ttyio_in() local 333 struct tty_struct *tty = in_synth->dev; spk_ttyio_flush_buffer() local 354 struct tty_struct *tty = in_synth->dev; spk_ttyio_release() local 374 struct tty_struct *tty = in_synth->dev; spk_ttyio_synth_immediate() local [all...] |
H A D | selection.c | 9 #include <linux/tty.h> 22 struct tty_struct *tty; member 30 struct tty_struct *tty; in __speakup_set_selection() local 38 /* release the lock by setting tty of the struct to NULL */ in __speakup_set_selection() 39 tty = xchg(&ssw->tty, NULL); in __speakup_set_selection() 51 set_selection_kernel(&sel, tty); in __speakup_set_selection() 54 tty_kref_put(tty); in __speakup_set_selection() 62 int speakup_set_selection(struct tty_struct *tty) in speakup_set_selection() argument 66 * invariant that if speakup_sel_work.tty i in speakup_set_selection() 94 struct tty_struct *tty; speakup_cancel_selection() local 110 struct tty_struct *tty = xchg(&ssw->tty, NULL); __speakup_paste_selection() local 121 speakup_paste_selection(struct tty_struct *tty) speakup_paste_selection() argument 135 struct tty_struct *tty; speakup_cancel_paste() local [all...] |
/kernel/linux/linux-5.10/drivers/accessibility/speakup/ |
H A D | selection.c | 9 #include <linux/tty.h> 22 struct tty_struct *tty; member 30 struct tty_struct *tty; in __speakup_set_selection() local 38 /* release the lock by setting tty of the struct to NULL */ in __speakup_set_selection() 39 tty = xchg(&ssw->tty, NULL); in __speakup_set_selection() 51 set_selection_kernel(&sel, tty); in __speakup_set_selection() 54 tty_kref_put(tty); in __speakup_set_selection() 62 int speakup_set_selection(struct tty_struct *tty) in speakup_set_selection() argument 66 * invariant that if speakup_sel_work.tty i in speakup_set_selection() 94 struct tty_struct *tty; speakup_cancel_selection() local 110 struct tty_struct *tty = xchg(&ssw->tty, NULL); __speakup_paste_selection() local 121 speakup_paste_selection(struct tty_struct *tty) speakup_paste_selection() argument 135 struct tty_struct *tty; speakup_cancel_paste() local [all...] |