Home
last modified time | relevance | path

Searched refs:real_tty (Results 1 – 4 of 4) sorted by relevance

/drivers/tty/
Dtty_jobctrl.c466 static int tiocgpgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t __user *p) in tiocgpgrp() argument
474 if (tty == real_tty && current->signal->tty != real_tty) in tiocgpgrp()
476 pid = tty_get_pgrp(real_tty); in tiocgpgrp()
493 static int tiocspgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t __user *p) in tiocspgrp() argument
497 int retval = tty_check_change(real_tty); in tiocspgrp()
509 spin_lock_irq(&real_tty->ctrl.lock); in tiocspgrp()
511 (current->signal->tty != real_tty) || in tiocspgrp()
512 (real_tty->ctrl.session != task_session(current))) { in tiocspgrp()
525 put_pid(real_tty->ctrl.pgrp); in tiocspgrp()
526 real_tty->ctrl.pgrp = get_pid(pgrp); in tiocspgrp()
[all …]
Dtty_ioctl.c777 struct tty_struct *real_tty; in tty_mode_ioctl() local
784 real_tty = tty->link; in tty_mode_ioctl()
786 real_tty = tty; in tty_mode_ioctl()
791 return get_sgttyb(real_tty, (struct sgttyb __user *) arg); in tty_mode_ioctl()
794 return set_sgttyb(real_tty, (struct sgttyb __user *) arg); in tty_mode_ioctl()
798 return get_tchars(real_tty, p); in tty_mode_ioctl()
800 return set_tchars(real_tty, p); in tty_mode_ioctl()
804 return get_ltchars(real_tty, p); in tty_mode_ioctl()
806 return set_ltchars(real_tty, p); in tty_mode_ioctl()
809 return set_termios(real_tty, p, TERMIOS_FLUSH | TERMIOS_WAIT | TERMIOS_OLD); in tty_mode_ioctl()
[all …]
Dtty.h82 long tty_jobctrl_ioctl(struct tty_struct *tty, struct tty_struct *real_tty,
Dtty_io.c2658 struct tty_struct *real_tty; in tty_ioctl() local
2666 real_tty = tty_pair_get_tty(tty); in tty_ioctl()
2695 return tiocgwinsz(real_tty, p); in tty_ioctl()
2697 return tiocswinsz(real_tty, p); in tty_ioctl()
2699 return real_tty != tty ? -EINVAL : tioccons(file); in tty_ioctl()
2723 unsigned int ret = new_encode_dev(tty_devnum(real_tty)); in tty_ioctl()
2774 retval = tty_jobctrl_ioctl(tty, real_tty, file, cmd, arg); in tty_ioctl()