Lines Matching refs:tty_struct

218 	int (*activate)(struct tty_port *port, struct tty_struct *tty);
230 struct tty_struct *tty; /* Back pointer */
231 struct tty_struct *itty; /* internal back ptr */
283 struct tty_struct { struct
321 struct tty_struct *link; argument
343 struct tty_struct *tty; argument
375 static inline void __tty_set_flow_change(struct tty_struct *tty, int val) in __tty_set_flow_change()
380 static inline void tty_set_flow_change(struct tty_struct *tty, int val) in tty_set_flow_change()
386 static inline bool tty_io_error(struct tty_struct *tty) in tty_io_error()
391 static inline bool tty_throttled(struct tty_struct *tty) in tty_throttled()
397 extern void tty_kref_put(struct tty_struct *tty);
398 extern struct pid *tty_get_pgrp(struct tty_struct *tty);
401 extern dev_t tty_devnum(struct tty_struct *tty);
403 extern struct tty_struct *get_current_tty(void);
406 extern const char *tty_name(const struct tty_struct *tty);
407 extern struct tty_struct *tty_kopen(dev_t device);
408 extern void tty_kclose(struct tty_struct *tty);
410 extern int tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout);
411 extern void tty_ldisc_unlock(struct tty_struct *tty);
413 static inline void tty_kref_put(struct tty_struct *tty) in tty_kref_put()
415 static inline struct pid *tty_get_pgrp(struct tty_struct *tty) in tty_get_pgrp()
421 static inline dev_t tty_devnum(struct tty_struct *tty) in tty_devnum()
425 static inline struct tty_struct *get_current_tty(void) in get_current_tty()
430 static inline const char *tty_name(const struct tty_struct *tty) in tty_name()
432 static inline struct tty_struct *tty_kopen(dev_t device) in tty_kopen()
434 static inline void tty_kclose(struct tty_struct *tty) in tty_kclose()
455 static inline struct tty_struct *tty_kref_get(struct tty_struct *tty) in tty_kref_get()
462 extern const char *tty_driver_name(const struct tty_struct *tty);
463 extern void tty_wait_until_sent(struct tty_struct *tty, long timeout);
464 extern int __tty_check_change(struct tty_struct *tty, int sig);
465 extern int tty_check_change(struct tty_struct *tty);
466 extern void __stop_tty(struct tty_struct *tty);
467 extern void stop_tty(struct tty_struct *tty);
468 extern void __start_tty(struct tty_struct *tty);
469 extern void start_tty(struct tty_struct *tty);
479 extern void tty_write_message(struct tty_struct *tty, char *msg);
480 extern int tty_send_xchar(struct tty_struct *tty, char ch);
481 extern int tty_put_char(struct tty_struct *tty, unsigned char c);
482 extern int tty_chars_in_buffer(struct tty_struct *tty);
483 extern int tty_write_room(struct tty_struct *tty);
484 extern void tty_driver_flush_buffer(struct tty_struct *tty);
485 extern void tty_throttle(struct tty_struct *tty);
486 extern void tty_unthrottle(struct tty_struct *tty);
487 extern int tty_throttle_safe(struct tty_struct *tty);
488 extern int tty_unthrottle_safe(struct tty_struct *tty);
489 extern int tty_do_resize(struct tty_struct *tty, struct winsize *ws);
491 extern void tty_hangup(struct tty_struct *tty);
492 extern void tty_vhangup(struct tty_struct *tty);
493 extern void tty_vhangup_session(struct tty_struct *tty);
495 extern void do_SAK(struct tty_struct *tty);
496 extern void __do_SAK(struct tty_struct *tty);
497 extern void tty_open_proc_set_tty(struct file *filp, struct tty_struct *tty);
498 extern int tty_signal_session_leader(struct tty_struct *tty, int exit_session);
502 extern void tty_buffer_flush(struct tty_struct *tty, struct tty_ldisc *ld);
512 extern void tty_encode_baud_rate(struct tty_struct *tty,
525 static inline speed_t tty_get_baud_rate(struct tty_struct *tty) in tty_get_baud_rate()
532 extern int tty_set_termios(struct tty_struct *tty, struct ktermios *kt);
534 extern struct tty_ldisc *tty_ldisc_ref(struct tty_struct *);
536 extern struct tty_ldisc *tty_ldisc_ref_wait(struct tty_struct *);
537 extern void tty_ldisc_hangup(struct tty_struct *tty, bool reset);
538 extern int tty_ldisc_reinit(struct tty_struct *tty, int disc);
541 extern void tty_wakeup(struct tty_struct *tty);
542 extern void tty_ldisc_flush(struct tty_struct *tty);
545 extern int tty_mode_ioctl(struct tty_struct *tty, struct file *file,
547 extern long tty_jobctrl_ioctl(struct tty_struct *tty, struct tty_struct *real_tty,
549 extern int tty_perform_flush(struct tty_struct *tty, unsigned long arg);
551 extern struct tty_struct *alloc_tty_struct(struct tty_driver *driver, int idx);
553 extern void tty_add_file(struct tty_struct *tty, struct file *file);
555 extern struct tty_struct *tty_init_dev(struct tty_driver *driver, int idx);
556 extern void tty_release_struct(struct tty_struct *tty, int idx);
558 extern void tty_init_termios(struct tty_struct *tty);
560 struct tty_struct *tty);
676 extern struct tty_struct *tty_port_tty_get(struct tty_port *port);
677 extern void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty);
685 struct tty_struct *tty, struct file *filp);
687 struct tty_struct *tty, struct file *filp);
688 extern void tty_port_close_end(struct tty_port *port, struct tty_struct *tty);
690 struct tty_struct *tty, struct file *filp);
692 struct tty_struct *tty);
694 struct tty_struct *tty, struct file *filp);
702 extern int tty_set_ldisc(struct tty_struct *tty, int disc);
703 extern int tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty);
704 extern void tty_ldisc_release(struct tty_struct *tty);
705 extern int __must_check tty_ldisc_init(struct tty_struct *tty);
706 extern void tty_ldisc_deinit(struct tty_struct *tty);
720 extern void tty_audit_add_data(struct tty_struct *tty, const void *data,
724 extern void tty_audit_tiocsti(struct tty_struct *tty, char ch);
727 static inline void tty_audit_add_data(struct tty_struct *tty, const void *data, in tty_audit_add_data()
731 static inline void tty_audit_tiocsti(struct tty_struct *tty, char ch) in tty_audit_tiocsti()
747 extern int n_tty_ioctl_helper(struct tty_struct *tty, struct file *file,
749 extern long n_tty_compat_ioctl_helper(struct tty_struct *tty, struct file *file,
754 extern int vt_ioctl(struct tty_struct *tty,
757 extern long vt_compat_ioctl(struct tty_struct *tty,
762 extern void tty_lock(struct tty_struct *tty);
763 extern int tty_lock_interruptible(struct tty_struct *tty);
764 extern void tty_unlock(struct tty_struct *tty);
765 extern void tty_lock_slave(struct tty_struct *tty);
766 extern void tty_unlock_slave(struct tty_struct *tty);
767 extern void tty_set_lock_subclass(struct tty_struct *tty);