Lines Matching refs:real_tty
2236 * @real_tty: tty side of the tty pased by the user if a pty else the tty
2245 static int tiocgpgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t __user *p)
2250 * (tty == real_tty) is a cheap way of
2253 if (tty == real_tty && current->signal->tty != real_tty)
2255 pid = tty_get_pgrp(real_tty);
2264 * @real_tty: tty side device matching tty passed by user
2273 static int tiocspgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t __user *p)
2277 int retval = tty_check_change(real_tty);
2285 (current->signal->tty != real_tty) ||
2286 (real_tty->session != task_session(current)))
2302 put_pid(real_tty->pgrp);
2303 real_tty->pgrp = get_pid(pgrp);
2313 * @real_tty: tty side of the tty pased by the user if a pty else the tty
2322 static int tiocgsid(struct tty_struct *tty, struct tty_struct *real_tty, pid_t __user *p)
2325 * (tty == real_tty) is a cheap way of
2328 if (tty == real_tty && current->signal->tty != real_tty)
2330 if (!real_tty->session)
2332 return put_user(pid_vnr(real_tty->session), p);
2490 struct tty_struct *real_tty;
2499 real_tty = tty_pair_get_tty(tty);
2528 return tiocgwinsz(real_tty, p);
2530 return tiocswinsz(real_tty, p);
2532 return real_tty != tty ? -EINVAL : tioccons(file);
2549 return tiocgpgrp(tty, real_tty, p);
2551 return tiocspgrp(tty, real_tty, p);
2553 return tiocgsid(tty, real_tty, p);