Lines Matching refs:tty_struct

216 	int (*activate)(struct tty_port *port, struct tty_struct *tty);
223 struct tty_struct *tty; /* Back pointer */
224 struct tty_struct *itty; /* internal back ptr */
259 struct tty_struct { struct
297 struct tty_struct *link; argument
319 struct tty_struct *tty; argument
353 static inline void __tty_set_flow_change(struct tty_struct *tty, int val) in __tty_set_flow_change()
358 static inline void tty_set_flow_change(struct tty_struct *tty, int val) in tty_set_flow_change()
366 extern void tty_kref_put(struct tty_struct *tty);
367 extern struct pid *tty_get_pgrp(struct tty_struct *tty);
370 extern dev_t tty_devnum(struct tty_struct *tty);
372 extern struct tty_struct *get_current_tty(void);
378 static inline void tty_kref_put(struct tty_struct *tty) in tty_kref_put()
380 static inline struct pid *tty_get_pgrp(struct tty_struct *tty) in tty_get_pgrp()
386 static inline dev_t tty_devnum(struct tty_struct *tty) in tty_devnum()
390 static inline struct tty_struct *get_current_tty(void) in get_current_tty()
397 extern void tty_write_flush(struct tty_struct *);
414 static inline struct tty_struct *tty_kref_get(struct tty_struct *tty) in tty_kref_get()
421 extern int tty_paranoia_check(struct tty_struct *tty, struct inode *inode,
423 extern const char *tty_name(const struct tty_struct *tty);
424 extern void tty_wait_until_sent(struct tty_struct *tty, long timeout);
425 extern int __tty_check_change(struct tty_struct *tty, int sig);
426 extern int tty_check_change(struct tty_struct *tty);
427 extern void __stop_tty(struct tty_struct *tty);
428 extern void stop_tty(struct tty_struct *tty);
429 extern void __start_tty(struct tty_struct *tty);
430 extern void start_tty(struct tty_struct *tty);
440 extern int tty_read_raw_data(struct tty_struct *tty, unsigned char *bufp,
442 extern void tty_write_message(struct tty_struct *tty, char *msg);
443 extern int tty_send_xchar(struct tty_struct *tty, char ch);
444 extern int tty_put_char(struct tty_struct *tty, unsigned char c);
445 extern int tty_chars_in_buffer(struct tty_struct *tty);
446 extern int tty_write_room(struct tty_struct *tty);
447 extern void tty_driver_flush_buffer(struct tty_struct *tty);
448 extern void tty_throttle(struct tty_struct *tty);
449 extern void tty_unthrottle(struct tty_struct *tty);
450 extern int tty_throttle_safe(struct tty_struct *tty);
451 extern int tty_unthrottle_safe(struct tty_struct *tty);
452 extern int tty_do_resize(struct tty_struct *tty, struct winsize *ws);
454 struct tty_struct *tty);
455 extern void tty_free_termios(struct tty_struct *tty);
458 extern int tty_signal(int sig, struct tty_struct *tty);
459 extern void tty_hangup(struct tty_struct *tty);
460 extern void tty_vhangup(struct tty_struct *tty);
462 extern void do_SAK(struct tty_struct *tty);
463 extern void __do_SAK(struct tty_struct *tty);
466 extern void tty_buffer_flush(struct tty_struct *tty, struct tty_ldisc *ld);
476 extern void tty_encode_baud_rate(struct tty_struct *tty,
489 static inline speed_t tty_get_baud_rate(struct tty_struct *tty) in tty_get_baud_rate()
496 extern int tty_set_termios(struct tty_struct *tty, struct ktermios *kt);
498 extern struct tty_ldisc *tty_ldisc_ref(struct tty_struct *);
500 extern struct tty_ldisc *tty_ldisc_ref_wait(struct tty_struct *);
501 extern void tty_ldisc_hangup(struct tty_struct *tty);
504 extern void tty_wakeup(struct tty_struct *tty);
505 extern void tty_ldisc_flush(struct tty_struct *tty);
508 extern int tty_mode_ioctl(struct tty_struct *tty, struct file *file,
510 extern int tty_perform_flush(struct tty_struct *tty, unsigned long arg);
512 extern struct tty_struct *alloc_tty_struct(struct tty_driver *driver, int idx);
514 extern void tty_add_file(struct tty_struct *tty, struct file *file);
516 extern void free_tty_struct(struct tty_struct *tty);
517 extern void deinitialize_tty_struct(struct tty_struct *tty);
518 extern struct tty_struct *tty_init_dev(struct tty_driver *driver, int idx);
520 extern int tty_init_termios(struct tty_struct *tty);
522 struct tty_struct *tty);
557 extern struct tty_struct *tty_port_tty_get(struct tty_port *port);
558 extern void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty);
566 struct tty_struct *tty, struct file *filp);
568 struct tty_struct *tty, struct file *filp);
569 extern void tty_port_close_end(struct tty_port *port, struct tty_struct *tty);
571 struct tty_struct *tty, struct file *filp);
573 struct tty_struct *tty);
575 struct tty_struct *tty, struct file *filp);
583 extern int tty_set_ldisc(struct tty_struct *tty, int ldisc);
584 extern int tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty);
585 extern void tty_ldisc_release(struct tty_struct *tty);
586 extern void tty_ldisc_init(struct tty_struct *tty);
587 extern void tty_ldisc_deinit(struct tty_struct *tty);
610 extern void tty_audit_add_data(struct tty_struct *tty, const void *data,
614 extern void tty_audit_tiocsti(struct tty_struct *tty, char ch);
615 extern void tty_audit_push(struct tty_struct *tty);
618 static inline void tty_audit_add_data(struct tty_struct *tty, const void *data, in tty_audit_add_data()
622 static inline void tty_audit_tiocsti(struct tty_struct *tty, char ch) in tty_audit_tiocsti()
631 static inline void tty_audit_push(struct tty_struct *tty) in tty_audit_push()
641 extern int n_tty_ioctl_helper(struct tty_struct *tty, struct file *file,
643 extern long n_tty_compat_ioctl_helper(struct tty_struct *tty, struct file *file,
648 extern int vt_ioctl(struct tty_struct *tty,
651 extern long vt_compat_ioctl(struct tty_struct *tty,
656 extern void __lockfunc tty_lock(struct tty_struct *tty);
657 extern int tty_lock_interruptible(struct tty_struct *tty);
658 extern void __lockfunc tty_unlock(struct tty_struct *tty);
659 extern void __lockfunc tty_lock_slave(struct tty_struct *tty);
660 extern void __lockfunc tty_unlock_slave(struct tty_struct *tty);
661 extern void tty_set_lock_subclass(struct tty_struct *tty);