Lines Matching refs:tty_struct
193 struct tty_struct { struct
236 struct tty_struct *link; argument
255 struct tty_struct *tty; argument
327 static inline bool tty_io_nonblock(struct tty_struct *tty, struct file *file) in tty_io_nonblock()
333 static inline bool tty_io_error(struct tty_struct *tty) in tty_io_error()
338 static inline bool tty_throttled(struct tty_struct *tty) in tty_throttled()
344 void tty_kref_put(struct tty_struct *tty);
345 struct pid *tty_get_pgrp(struct tty_struct *tty);
348 dev_t tty_devnum(struct tty_struct *tty);
350 struct tty_struct *get_current_tty(void);
353 const char *tty_name(const struct tty_struct *tty);
354 struct tty_struct *tty_kopen_exclusive(dev_t device);
355 struct tty_struct *tty_kopen_shared(dev_t device);
356 void tty_kclose(struct tty_struct *tty);
359 static inline void tty_kref_put(struct tty_struct *tty) in tty_kref_put()
361 static inline struct pid *tty_get_pgrp(struct tty_struct *tty) in tty_get_pgrp()
367 static inline dev_t tty_devnum(struct tty_struct *tty) in tty_devnum()
371 static inline struct tty_struct *get_current_tty(void) in get_current_tty()
376 static inline const char *tty_name(const struct tty_struct *tty) in tty_name()
378 static inline struct tty_struct *tty_kopen_exclusive(dev_t device) in tty_kopen_exclusive()
380 static inline void tty_kclose(struct tty_struct *tty) in tty_kclose()
401 static inline struct tty_struct *tty_kref_get(struct tty_struct *tty) in tty_kref_get()
408 const char *tty_driver_name(const struct tty_struct *tty);
409 void tty_wait_until_sent(struct tty_struct *tty, long timeout);
410 void stop_tty(struct tty_struct *tty);
411 void start_tty(struct tty_struct *tty);
412 void tty_write_message(struct tty_struct *tty, char *msg);
413 int tty_send_xchar(struct tty_struct *tty, char ch);
414 int tty_put_char(struct tty_struct *tty, unsigned char c);
415 unsigned int tty_chars_in_buffer(struct tty_struct *tty);
416 unsigned int tty_write_room(struct tty_struct *tty);
417 void tty_driver_flush_buffer(struct tty_struct *tty);
418 void tty_unthrottle(struct tty_struct *tty);
419 int tty_throttle_safe(struct tty_struct *tty);
420 int tty_unthrottle_safe(struct tty_struct *tty);
421 int tty_do_resize(struct tty_struct *tty, struct winsize *ws);
422 int tty_get_icount(struct tty_struct *tty,
425 void tty_hangup(struct tty_struct *tty);
426 void tty_vhangup(struct tty_struct *tty);
428 void do_SAK(struct tty_struct *tty);
429 void __do_SAK(struct tty_struct *tty);
434 void tty_encode_baud_rate(struct tty_struct *tty, speed_t ibaud,
447 static inline speed_t tty_get_baud_rate(struct tty_struct *tty) in tty_get_baud_rate()
457 int tty_set_termios(struct tty_struct *tty, struct ktermios *kt);
459 void tty_wakeup(struct tty_struct *tty);
461 int tty_mode_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg);
462 int tty_perform_flush(struct tty_struct *tty, unsigned long arg);
463 struct tty_struct *tty_init_dev(struct tty_driver *driver, int idx);
464 void tty_release_struct(struct tty_struct *tty, int idx);
465 void tty_init_termios(struct tty_struct *tty);
466 void tty_save_termios(struct tty_struct *tty);
468 struct tty_struct *tty);
499 int n_tty_ioctl_helper(struct tty_struct *tty, unsigned int cmd,
504 int vt_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg);
506 long vt_compat_ioctl(struct tty_struct *tty, unsigned int cmd,
511 void tty_lock(struct tty_struct *tty);
512 int tty_lock_interruptible(struct tty_struct *tty);
513 void tty_unlock(struct tty_struct *tty);
514 void tty_lock_slave(struct tty_struct *tty);
515 void tty_unlock_slave(struct tty_struct *tty);
516 void tty_set_lock_subclass(struct tty_struct *tty);