Lines Matching refs:tty_struct
188 struct tty_struct { struct
229 struct tty_struct *link; argument
247 struct tty_struct *tty; argument
321 static inline bool tty_io_nonblock(struct tty_struct *tty, struct file *file) in tty_io_nonblock()
327 static inline bool tty_io_error(struct tty_struct *tty) in tty_io_error()
332 static inline bool tty_throttled(struct tty_struct *tty) in tty_throttled()
338 void tty_kref_put(struct tty_struct *tty);
339 struct pid *tty_get_pgrp(struct tty_struct *tty);
342 dev_t tty_devnum(struct tty_struct *tty);
344 struct tty_struct *get_current_tty(void);
347 const char *tty_name(const struct tty_struct *tty);
348 struct tty_struct *tty_kopen_exclusive(dev_t device);
349 struct tty_struct *tty_kopen_shared(dev_t device);
350 void tty_kclose(struct tty_struct *tty);
353 static inline void tty_kref_put(struct tty_struct *tty) in tty_kref_put()
355 static inline struct pid *tty_get_pgrp(struct tty_struct *tty) in tty_get_pgrp()
361 static inline dev_t tty_devnum(struct tty_struct *tty) in tty_devnum()
365 static inline struct tty_struct *get_current_tty(void) in get_current_tty()
370 static inline const char *tty_name(const struct tty_struct *tty) in tty_name()
372 static inline struct tty_struct *tty_kopen_exclusive(dev_t device) in tty_kopen_exclusive()
374 static inline void tty_kclose(struct tty_struct *tty) in tty_kclose()
395 static inline struct tty_struct *tty_kref_get(struct tty_struct *tty) in tty_kref_get()
402 const char *tty_driver_name(const struct tty_struct *tty);
403 void tty_wait_until_sent(struct tty_struct *tty, long timeout);
404 void stop_tty(struct tty_struct *tty);
405 void start_tty(struct tty_struct *tty);
406 void tty_write_message(struct tty_struct *tty, char *msg);
407 int tty_send_xchar(struct tty_struct *tty, u8 ch);
408 int tty_put_char(struct tty_struct *tty, u8 c);
409 unsigned int tty_chars_in_buffer(struct tty_struct *tty);
410 unsigned int tty_write_room(struct tty_struct *tty);
411 void tty_driver_flush_buffer(struct tty_struct *tty);
412 void tty_unthrottle(struct tty_struct *tty);
413 bool tty_throttle_safe(struct tty_struct *tty);
414 bool tty_unthrottle_safe(struct tty_struct *tty);
415 int tty_do_resize(struct tty_struct *tty, struct winsize *ws);
416 int tty_get_icount(struct tty_struct *tty,
418 int tty_get_tiocm(struct tty_struct *tty);
420 void tty_hangup(struct tty_struct *tty);
421 void tty_vhangup(struct tty_struct *tty);
423 void do_SAK(struct tty_struct *tty);
424 void __do_SAK(struct tty_struct *tty);
429 void tty_encode_baud_rate(struct tty_struct *tty, speed_t ibaud,
440 static inline speed_t tty_get_baud_rate(const struct tty_struct *tty) in tty_get_baud_rate()
450 int tty_set_termios(struct tty_struct *tty, struct ktermios *kt);
452 void tty_wakeup(struct tty_struct *tty);
454 int tty_mode_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg);
455 int tty_perform_flush(struct tty_struct *tty, unsigned long arg);
456 struct tty_struct *tty_init_dev(struct tty_driver *driver, int idx);
457 void tty_release_struct(struct tty_struct *tty, int idx);
458 void tty_init_termios(struct tty_struct *tty);
459 void tty_save_termios(struct tty_struct *tty);
461 struct tty_struct *tty);
492 int n_tty_ioctl_helper(struct tty_struct *tty, unsigned int cmd,
497 int vt_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg);
499 long vt_compat_ioctl(struct tty_struct *tty, unsigned int cmd,
504 void tty_lock(struct tty_struct *tty);
505 int tty_lock_interruptible(struct tty_struct *tty);
506 void tty_unlock(struct tty_struct *tty);
507 void tty_lock_slave(struct tty_struct *tty);
508 void tty_unlock_slave(struct tty_struct *tty);
509 void tty_set_lock_subclass(struct tty_struct *tty);