Lines Matching refs:tty_struct
219 int (*activate)(struct tty_port *port, struct tty_struct *tty);
235 struct tty_struct *tty; /* Back pointer */
236 struct tty_struct *itty; /* internal back ptr */
290 struct tty_struct { struct
335 struct tty_struct *link; argument
360 struct tty_struct *tty; argument
393 static inline void __tty_set_flow_change(struct tty_struct *tty, int val) in __tty_set_flow_change()
398 static inline void tty_set_flow_change(struct tty_struct *tty, int val) in tty_set_flow_change()
404 static inline bool tty_io_nonblock(struct tty_struct *tty, struct file *file) in tty_io_nonblock()
410 static inline bool tty_io_error(struct tty_struct *tty) in tty_io_error()
415 static inline bool tty_throttled(struct tty_struct *tty) in tty_throttled()
421 extern void tty_kref_put(struct tty_struct *tty);
422 extern struct pid *tty_get_pgrp(struct tty_struct *tty);
425 extern dev_t tty_devnum(struct tty_struct *tty);
427 extern struct tty_struct *get_current_tty(void);
430 extern const char *tty_name(const struct tty_struct *tty);
431 extern struct tty_struct *tty_kopen(dev_t device);
432 extern void tty_kclose(struct tty_struct *tty);
434 extern int tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout);
435 extern void tty_ldisc_unlock(struct tty_struct *tty);
438 static inline void tty_kref_put(struct tty_struct *tty) in tty_kref_put()
440 static inline struct pid *tty_get_pgrp(struct tty_struct *tty) in tty_get_pgrp()
446 static inline dev_t tty_devnum(struct tty_struct *tty) in tty_devnum()
450 static inline struct tty_struct *get_current_tty(void) in get_current_tty()
455 static inline const char *tty_name(const struct tty_struct *tty) in tty_name()
457 static inline struct tty_struct *tty_kopen(dev_t device) in tty_kopen()
459 static inline void tty_kclose(struct tty_struct *tty) in tty_kclose()
480 static inline struct tty_struct *tty_kref_get(struct tty_struct *tty) in tty_kref_get()
487 extern const char *tty_driver_name(const struct tty_struct *tty);
488 extern void tty_wait_until_sent(struct tty_struct *tty, long timeout);
489 extern int __tty_check_change(struct tty_struct *tty, int sig);
490 extern int tty_check_change(struct tty_struct *tty);
491 extern void __stop_tty(struct tty_struct *tty);
492 extern void stop_tty(struct tty_struct *tty);
493 extern void __start_tty(struct tty_struct *tty);
494 extern void start_tty(struct tty_struct *tty);
504 extern void tty_write_message(struct tty_struct *tty, char *msg);
505 extern int tty_send_xchar(struct tty_struct *tty, char ch);
506 extern int tty_put_char(struct tty_struct *tty, unsigned char c);
507 extern int tty_chars_in_buffer(struct tty_struct *tty);
508 extern int tty_write_room(struct tty_struct *tty);
509 extern void tty_driver_flush_buffer(struct tty_struct *tty);
510 extern void tty_throttle(struct tty_struct *tty);
511 extern void tty_unthrottle(struct tty_struct *tty);
512 extern int tty_throttle_safe(struct tty_struct *tty);
513 extern int tty_unthrottle_safe(struct tty_struct *tty);
514 extern int tty_do_resize(struct tty_struct *tty, struct winsize *ws);
516 extern void tty_hangup(struct tty_struct *tty);
517 extern void tty_vhangup(struct tty_struct *tty);
518 extern void tty_vhangup_session(struct tty_struct *tty);
520 extern void do_SAK(struct tty_struct *tty);
521 extern void __do_SAK(struct tty_struct *tty);
522 extern void tty_open_proc_set_tty(struct file *filp, struct tty_struct *tty);
523 extern int tty_signal_session_leader(struct tty_struct *tty, int exit_session);
527 extern void tty_buffer_flush(struct tty_struct *tty, struct tty_ldisc *ld);
537 extern void tty_encode_baud_rate(struct tty_struct *tty,
550 static inline speed_t tty_get_baud_rate(struct tty_struct *tty) in tty_get_baud_rate()
557 extern int tty_set_termios(struct tty_struct *tty, struct ktermios *kt);
559 extern struct tty_ldisc *tty_ldisc_ref(struct tty_struct *);
561 extern struct tty_ldisc *tty_ldisc_ref_wait(struct tty_struct *);
562 extern void tty_ldisc_hangup(struct tty_struct *tty, bool reset);
563 extern int tty_ldisc_reinit(struct tty_struct *tty, int disc);
566 extern void tty_wakeup(struct tty_struct *tty);
567 extern void tty_ldisc_flush(struct tty_struct *tty);
570 extern int tty_mode_ioctl(struct tty_struct *tty, struct file *file,
572 extern long tty_jobctrl_ioctl(struct tty_struct *tty, struct tty_struct *real_tty,
574 extern int tty_perform_flush(struct tty_struct *tty, unsigned long arg);
576 extern struct tty_struct *alloc_tty_struct(struct tty_driver *driver, int idx);
578 extern void tty_add_file(struct tty_struct *tty, struct file *file);
580 extern struct tty_struct *tty_init_dev(struct tty_driver *driver, int idx);
581 extern void tty_release_struct(struct tty_struct *tty, int idx);
583 extern void tty_init_termios(struct tty_struct *tty);
584 extern void tty_save_termios(struct tty_struct *tty);
586 struct tty_struct *tty);
702 extern struct tty_struct *tty_port_tty_get(struct tty_port *port);
703 extern void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty);
711 struct tty_struct *tty, struct file *filp);
713 struct tty_struct *tty, struct file *filp);
714 extern void tty_port_close_end(struct tty_port *port, struct tty_struct *tty);
716 struct tty_struct *tty, struct file *filp);
718 struct tty_struct *tty);
720 struct tty_struct *tty, struct file *filp);
728 extern int tty_set_ldisc(struct tty_struct *tty, int disc);
729 extern int tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty);
730 extern void tty_ldisc_release(struct tty_struct *tty);
731 extern int __must_check tty_ldisc_init(struct tty_struct *tty);
732 extern void tty_ldisc_deinit(struct tty_struct *tty);
746 extern void tty_audit_add_data(struct tty_struct *tty, const void *data,
750 extern void tty_audit_tiocsti(struct tty_struct *tty, char ch);
753 static inline void tty_audit_add_data(struct tty_struct *tty, const void *data, in tty_audit_add_data()
757 static inline void tty_audit_tiocsti(struct tty_struct *tty, char ch) in tty_audit_tiocsti()
773 extern int n_tty_ioctl_helper(struct tty_struct *tty, struct file *file,
778 extern int vt_ioctl(struct tty_struct *tty,
781 extern long vt_compat_ioctl(struct tty_struct *tty,
786 extern void tty_lock(struct tty_struct *tty);
787 extern int tty_lock_interruptible(struct tty_struct *tty);
788 extern void tty_unlock(struct tty_struct *tty);
789 extern void tty_lock_slave(struct tty_struct *tty);
790 extern void tty_unlock_slave(struct tty_struct *tty);
791 extern void tty_set_lock_subclass(struct tty_struct *tty);