Lines Matching refs:tty_struct
160 static void release_tty(struct tty_struct *tty, int idx);
171 void free_tty_struct(struct tty_struct *tty) in free_tty_struct()
181 static inline struct tty_struct *file_tty(struct file *file) in file_tty()
200 void tty_add_file(struct tty_struct *tty, struct file *file) in tty_add_file()
250 const char *tty_name(const struct tty_struct *tty) in tty_name()
259 int tty_paranoia_check(struct tty_struct *tty, struct inode *inode, in tty_paranoia_check()
280 static int check_tty_count(struct tty_struct *tty, const char *routine) in check_tty_count()
393 int __tty_check_change(struct tty_struct *tty, int sig) in __tty_check_change()
431 int tty_check_change(struct tty_struct *tty) in tty_check_change()
508 struct tty_struct *tty; in proc_clear_tty()
526 static void __proc_set_tty(struct tty_struct *tty) in __proc_set_tty()
550 static void proc_set_tty(struct tty_struct *tty) in proc_set_tty()
557 struct tty_struct *get_current_tty(void) in get_current_tty()
559 struct tty_struct *tty; in get_current_tty()
586 void tty_wakeup(struct tty_struct *tty) in tty_wakeup()
615 static int tty_signal_session_leader(struct tty_struct *tty, int exit_session) in tty_signal_session_leader()
679 static void __tty_hangup(struct tty_struct *tty, int exit_session) in __tty_hangup()
768 struct tty_struct *tty = in do_tty_hangup()
769 container_of(work, struct tty_struct, hangup_work); in do_tty_hangup()
782 void tty_hangup(struct tty_struct *tty) in tty_hangup()
799 void tty_vhangup(struct tty_struct *tty) in tty_vhangup()
816 struct tty_struct *tty; in tty_vhangup_self()
836 static void tty_vhangup_session(struct tty_struct *tty) in tty_vhangup_session()
884 struct tty_struct *tty; in disassociate_ctty()
974 void __stop_tty(struct tty_struct *tty) in __stop_tty()
983 void stop_tty(struct tty_struct *tty) in stop_tty()
1005 void __start_tty(struct tty_struct *tty) in __start_tty()
1015 void start_tty(struct tty_struct *tty) in start_tty()
1059 struct tty_struct *tty = file_tty(file); in tty_read()
1082 static void tty_write_unlock(struct tty_struct *tty) in tty_write_unlock()
1088 static int tty_write_lock(struct tty_struct *tty, int ndelay) in tty_write_lock()
1104 ssize_t (*write)(struct tty_struct *, struct file *, const unsigned char *, size_t), in do_tty_write() argument
1105 struct tty_struct *tty, in do_tty_write()
1198 void tty_write_message(struct tty_struct *tty, char *msg) in tty_write_message()
1231 struct tty_struct *tty = file_tty(file); in tty_write()
1280 int tty_send_xchar(struct tty_struct *tty, char ch) in tty_send_xchar()
1357 static struct tty_struct *tty_driver_lookup_tty(struct tty_driver *driver, in tty_driver_lookup_tty()
1360 struct tty_struct *tty; in tty_driver_lookup_tty()
1380 int tty_init_termios(struct tty_struct *tty) in tty_init_termios()
1402 int tty_standard_install(struct tty_driver *driver, struct tty_struct *tty) in tty_standard_install()
1428 struct tty_struct *tty) in tty_driver_install_tty()
1444 void tty_driver_remove_tty(struct tty_driver *driver, struct tty_struct *tty) in tty_driver_remove_tty()
1461 static int tty_reopen(struct tty_struct *tty) in tty_reopen()
1506 struct tty_struct *tty_init_dev(struct tty_driver *driver, int idx) in tty_init_dev()
1508 struct tty_struct *tty; in tty_init_dev()
1570 void tty_free_termios(struct tty_struct *tty) in tty_free_termios()
1599 static void tty_flush_works(struct tty_struct *tty) in tty_flush_works()
1626 struct tty_struct *tty = in release_one_tty()
1627 container_of(work, struct tty_struct, hangup_work); in release_one_tty()
1649 struct tty_struct *tty = container_of(kref, struct tty_struct, kref); in queue_release_one_tty()
1665 void tty_kref_put(struct tty_struct *tty) in tty_kref_put()
1684 static void release_tty(struct tty_struct *tty, int idx) in release_tty()
1711 static int tty_release_checks(struct tty_struct *tty, int idx) in tty_release_checks()
1729 struct tty_struct *o_tty = tty->link; in tty_release_checks()
1766 struct tty_struct *tty = file_tty(filp); in tty_release()
1767 struct tty_struct *o_tty = NULL; in tty_release()
1935 static struct tty_struct *tty_open_current_tty(dev_t device, struct file *filp) in tty_open_current_tty()
1937 struct tty_struct *tty; in tty_open_current_tty()
2036 struct tty_struct *tty; in tty_open()
2193 struct tty_struct *tty = file_tty(filp); in tty_poll()
2209 struct tty_struct *tty = file_tty(filp); in __tty_fasync()
2252 struct tty_struct *tty = file_tty(filp); in tty_fasync()
2279 static int tiocsti(struct tty_struct *tty, char __user *p) in tiocsti()
2306 static int tiocgwinsz(struct tty_struct *tty, struct winsize __user *arg) in tiocgwinsz()
2327 int tty_do_resize(struct tty_struct *tty, struct winsize *ws) in tty_do_resize()
2364 static int tiocswinsz(struct tty_struct *tty, struct winsize __user *arg) in tiocswinsz()
2451 static int tiocsctty(struct tty_struct *tty, struct file *file, int arg) in tiocsctty()
2507 struct pid *tty_get_pgrp(struct tty_struct *tty) in tty_get_pgrp()
2553 static int tiocgpgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t __user *p) in tiocgpgrp()
2581 static int tiocspgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t __user *p) in tiocspgrp()
2629 static int tiocgsid(struct tty_struct *tty, struct tty_struct *real_tty, pid_t __user *p) in tiocgsid()
2652 static int tiocsetd(struct tty_struct *tty, int __user *p) in tiocsetd()
2676 static int tiocgetd(struct tty_struct *tty, int __user *p) in tiocgetd()
2700 static int send_break(struct tty_struct *tty, unsigned int duration) in send_break()
2739 static int tty_tiocmget(struct tty_struct *tty, int __user *p) in tty_tiocmget()
2764 static int tty_tiocmset(struct tty_struct *tty, unsigned int cmd, in tty_tiocmset()
2794 static int tty_tiocgicount(struct tty_struct *tty, void __user *arg) in tty_tiocgicount()
2830 static struct tty_struct *tty_pair_get_tty(struct tty_struct *tty) in tty_pair_get_tty()
2843 struct tty_struct *tty = file_tty(file); in tty_ioctl()
2844 struct tty_struct *real_tty; in tty_ioctl()
2993 struct tty_struct *tty = file_tty(file); in tty_compat_ioctl()
3043 void __do_SAK(struct tty_struct *tty) in __do_SAK()
3095 struct tty_struct *tty = in do_SAK_work()
3096 container_of(work, struct tty_struct, SAK_work); in do_SAK_work()
3106 void do_SAK(struct tty_struct *tty) in do_SAK()
3122 static struct device *tty_get_device(struct tty_struct *tty) in tty_get_device()
3137 struct tty_struct *alloc_tty_struct(struct tty_driver *driver, int idx) in alloc_tty_struct()
3139 struct tty_struct *tty; in alloc_tty_struct()
3182 void deinitialize_tty_struct(struct tty_struct *tty) in deinitialize_tty_struct()
3199 int tty_put_char(struct tty_struct *tty, unsigned char ch) in tty_put_char()
3559 dev_t tty_devnum(struct tty_struct *tty) in tty_devnum()