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
376 static inline void __tty_set_flow_change(struct tty_struct *tty, int val) in __tty_set_flow_change()
381 static inline void tty_set_flow_change(struct tty_struct *tty, int val) in tty_set_flow_change()
387 static inline bool tty_io_nonblock(struct tty_struct *tty, struct file *file) in tty_io_nonblock()
393 static inline bool tty_io_error(struct tty_struct *tty) in tty_io_error()
398 static inline bool tty_throttled(struct tty_struct *tty) in tty_throttled()
404 extern void tty_kref_put(struct tty_struct *tty);
405 extern struct pid *tty_get_pgrp(struct tty_struct *tty);
408 extern dev_t tty_devnum(struct tty_struct *tty);
410 extern struct tty_struct *get_current_tty(void);
413 extern const char *tty_name(const struct tty_struct *tty);
414 extern struct tty_struct *tty_kopen(dev_t device);
415 extern void tty_kclose(struct tty_struct *tty);
417 extern int tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout);
418 extern void tty_ldisc_unlock(struct tty_struct *tty);
420 static inline void tty_kref_put(struct tty_struct *tty) in tty_kref_put()
422 static inline struct pid *tty_get_pgrp(struct tty_struct *tty) in tty_get_pgrp()
428 static inline dev_t tty_devnum(struct tty_struct *tty) in tty_devnum()
432 static inline struct tty_struct *get_current_tty(void) in get_current_tty()
437 static inline const char *tty_name(const struct tty_struct *tty) in tty_name()
439 static inline struct tty_struct *tty_kopen(dev_t device) in tty_kopen()
441 static inline void tty_kclose(struct tty_struct *tty) in tty_kclose()
462 static inline struct tty_struct *tty_kref_get(struct tty_struct *tty) in tty_kref_get()
469 extern const char *tty_driver_name(const struct tty_struct *tty);
470 extern void tty_wait_until_sent(struct tty_struct *tty, long timeout);
471 extern int __tty_check_change(struct tty_struct *tty, int sig);
472 extern int tty_check_change(struct tty_struct *tty);
473 extern void __stop_tty(struct tty_struct *tty);
474 extern void stop_tty(struct tty_struct *tty);
475 extern void __start_tty(struct tty_struct *tty);
476 extern void start_tty(struct tty_struct *tty);
486 extern void tty_write_message(struct tty_struct *tty, char *msg);
487 extern int tty_send_xchar(struct tty_struct *tty, char ch);
488 extern int tty_put_char(struct tty_struct *tty, unsigned char c);
489 extern int tty_chars_in_buffer(struct tty_struct *tty);
490 extern int tty_write_room(struct tty_struct *tty);
491 extern void tty_driver_flush_buffer(struct tty_struct *tty);
492 extern void tty_throttle(struct tty_struct *tty);
493 extern void tty_unthrottle(struct tty_struct *tty);
494 extern int tty_throttle_safe(struct tty_struct *tty);
495 extern int tty_unthrottle_safe(struct tty_struct *tty);
496 extern int tty_do_resize(struct tty_struct *tty, struct winsize *ws);
498 extern void tty_hangup(struct tty_struct *tty);
499 extern void tty_vhangup(struct tty_struct *tty);
500 extern void tty_vhangup_session(struct tty_struct *tty);
502 extern void do_SAK(struct tty_struct *tty);
503 extern void __do_SAK(struct tty_struct *tty);
504 extern void tty_open_proc_set_tty(struct file *filp, struct tty_struct *tty);
505 extern int tty_signal_session_leader(struct tty_struct *tty, int exit_session);
509 extern void tty_buffer_flush(struct tty_struct *tty, struct tty_ldisc *ld);
519 extern void tty_encode_baud_rate(struct tty_struct *tty,
532 static inline speed_t tty_get_baud_rate(struct tty_struct *tty) in tty_get_baud_rate()
539 extern int tty_set_termios(struct tty_struct *tty, struct ktermios *kt);
541 extern struct tty_ldisc *tty_ldisc_ref(struct tty_struct *);
543 extern struct tty_ldisc *tty_ldisc_ref_wait(struct tty_struct *);
544 extern void tty_ldisc_hangup(struct tty_struct *tty, bool reset);
545 extern int tty_ldisc_reinit(struct tty_struct *tty, int disc);
548 extern void tty_wakeup(struct tty_struct *tty);
549 extern void tty_ldisc_flush(struct tty_struct *tty);
552 extern int tty_mode_ioctl(struct tty_struct *tty, struct file *file,
554 extern long tty_jobctrl_ioctl(struct tty_struct *tty, struct tty_struct *real_tty,
556 extern int tty_perform_flush(struct tty_struct *tty, unsigned long arg);
558 extern struct tty_struct *alloc_tty_struct(struct tty_driver *driver, int idx);
560 extern void tty_add_file(struct tty_struct *tty, struct file *file);
562 extern struct tty_struct *tty_init_dev(struct tty_driver *driver, int idx);
563 extern void tty_release_struct(struct tty_struct *tty, int idx);
565 extern void tty_init_termios(struct tty_struct *tty);
566 extern void tty_save_termios(struct tty_struct *tty);
568 struct tty_struct *tty);
684 extern struct tty_struct *tty_port_tty_get(struct tty_port *port);
685 extern void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty);
693 struct tty_struct *tty, struct file *filp);
695 struct tty_struct *tty, struct file *filp);
696 extern void tty_port_close_end(struct tty_port *port, struct tty_struct *tty);
698 struct tty_struct *tty, struct file *filp);
700 struct tty_struct *tty);
702 struct tty_struct *tty, struct file *filp);
710 extern int tty_set_ldisc(struct tty_struct *tty, int disc);
711 extern int tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty);
712 extern void tty_ldisc_release(struct tty_struct *tty);
713 extern int __must_check tty_ldisc_init(struct tty_struct *tty);
714 extern void tty_ldisc_deinit(struct tty_struct *tty);
728 extern void tty_audit_add_data(struct tty_struct *tty, const void *data,
732 extern void tty_audit_tiocsti(struct tty_struct *tty, char ch);
735 static inline void tty_audit_add_data(struct tty_struct *tty, const void *data, in tty_audit_add_data()
739 static inline void tty_audit_tiocsti(struct tty_struct *tty, char ch) in tty_audit_tiocsti()
755 extern int n_tty_ioctl_helper(struct tty_struct *tty, struct file *file,
760 extern int vt_ioctl(struct tty_struct *tty,
763 extern long vt_compat_ioctl(struct tty_struct *tty,
768 extern void tty_lock(struct tty_struct *tty);
769 extern int tty_lock_interruptible(struct tty_struct *tty);
770 extern void tty_unlock(struct tty_struct *tty);
771 extern void tty_lock_slave(struct tty_struct *tty);
772 extern void tty_unlock_slave(struct tty_struct *tty);
773 extern void tty_set_lock_subclass(struct tty_struct *tty);