Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/tty/
Dtty_jobctrl.c446 static int tiocgpgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t __user *p) in tiocgpgrp() argument
454 if (tty == real_tty && current->signal->tty != real_tty) in tiocgpgrp()
456 pid = tty_get_pgrp(real_tty); in tiocgpgrp()
473 static int tiocspgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t __user *p) in tiocspgrp() argument
477 int retval = tty_check_change(real_tty); in tiocspgrp()
489 spin_lock_irq(&real_tty->ctrl_lock); in tiocspgrp()
491 (current->signal->tty != real_tty) || in tiocspgrp()
492 (real_tty->session != task_session(current))) { in tiocspgrp()
505 put_pid(real_tty->pgrp); in tiocspgrp()
506 real_tty->pgrp = get_pid(pgrp); in tiocspgrp()
[all …]
Dtty_ioctl.c666 struct tty_struct *real_tty; in tty_mode_ioctl() local
675 real_tty = tty->link; in tty_mode_ioctl()
677 real_tty = tty; in tty_mode_ioctl()
682 return get_sgttyb(real_tty, (struct sgttyb __user *) arg); in tty_mode_ioctl()
685 return set_sgttyb(real_tty, (struct sgttyb __user *) arg); in tty_mode_ioctl()
689 return get_tchars(real_tty, p); in tty_mode_ioctl()
691 return set_tchars(real_tty, p); in tty_mode_ioctl()
695 return get_ltchars(real_tty, p); in tty_mode_ioctl()
697 return set_ltchars(real_tty, p); in tty_mode_ioctl()
700 return set_termios(real_tty, p, TERMIOS_FLUSH | TERMIOS_WAIT | TERMIOS_OLD); in tty_mode_ioctl()
[all …]
Dtty_io.c2623 struct tty_struct *real_tty; in tty_ioctl() local
2631 real_tty = tty_pair_get_tty(tty); in tty_ioctl()
2660 return tiocgwinsz(real_tty, p); in tty_ioctl()
2662 return tiocswinsz(real_tty, p); in tty_ioctl()
2664 return real_tty != tty ? -EINVAL : tioccons(file); in tty_ioctl()
2687 unsigned int ret = new_encode_dev(tty_devnum(real_tty)); in tty_ioctl()
2737 retval = tty_jobctrl_ioctl(tty, real_tty, file, cmd, arg); in tty_ioctl()
/kernel/linux/linux-5.10/include/linux/
Dtty.h560 extern long tty_jobctrl_ioctl(struct tty_struct *tty, struct tty_struct *real_tty,