Lines Matching refs:pgrp
34 struct pid *pgrp, *tty_pgrp; in __tty_check_change() local
41 pgrp = task_pgrp(current); in __tty_check_change()
44 tty_pgrp = tty->pgrp; in __tty_check_change()
47 if (tty_pgrp && pgrp != tty_pgrp) { in __tty_check_change()
54 kill_pgrp(pgrp, sig, 1); in __tty_check_change()
104 put_pid(tty->pgrp); in __proc_set_tty()
105 tty->pgrp = get_pid(task_pgrp(current)); in __proc_set_tty()
215 tty_pgrp = get_pid(tty->pgrp); in tty_signal_session_leader()
216 if (tty->pgrp) in tty_signal_session_leader()
217 p->signal->tty_old_pgrp = get_pid(tty->pgrp); in tty_signal_session_leader()
302 put_pid(tty->pgrp); in disassociate_ctty()
304 tty->pgrp = NULL; in disassociate_ctty()
401 struct pid *pgrp; in tty_get_pgrp() local
404 pgrp = get_pid(tty->pgrp); in tty_get_pgrp()
407 return pgrp; in tty_get_pgrp()
418 static struct pid *session_of_pgrp(struct pid *pgrp) in session_of_pgrp() argument
423 p = pid_task(pgrp, PIDTYPE_PGID); in session_of_pgrp()
425 p = pid_task(pgrp, PIDTYPE_PID); in session_of_pgrp()
472 struct pid *pgrp; in tiocspgrp() local
489 pgrp = find_vpid(pgrp_nr); in tiocspgrp()
491 if (!pgrp) in tiocspgrp()
494 if (session_of_pgrp(pgrp) != task_session(current)) in tiocspgrp()
498 put_pid(real_tty->pgrp); in tiocspgrp()
499 real_tty->pgrp = get_pid(pgrp); in tiocspgrp()