Lines Matching refs:pgrp
36 struct pid *pgrp, *tty_pgrp; in __tty_check_change() local
43 pgrp = task_pgrp(current); in __tty_check_change()
46 tty_pgrp = tty->ctrl.pgrp; in __tty_check_change()
49 if (tty_pgrp && pgrp != tty_pgrp) { in __tty_check_change()
56 kill_pgrp(pgrp, sig, 1); in __tty_check_change()
108 put_pid(tty->ctrl.pgrp); in __proc_set_tty()
109 tty->ctrl.pgrp = get_pid(task_pgrp(current)); in __proc_set_tty()
222 tty_pgrp = get_pid(tty->ctrl.pgrp); in tty_signal_session_leader()
223 if (tty->ctrl.pgrp) in tty_signal_session_leader()
225 get_pid(tty->ctrl.pgrp); in tty_signal_session_leader()
315 put_pid(tty->ctrl.pgrp); in disassociate_ctty()
317 tty->ctrl.pgrp = NULL; in disassociate_ctty()
419 struct pid *pgrp; in tty_get_pgrp() local
422 pgrp = get_pid(tty->ctrl.pgrp); in tty_get_pgrp()
425 return pgrp; in tty_get_pgrp()
436 static struct pid *session_of_pgrp(struct pid *pgrp) in session_of_pgrp() argument
441 p = pid_task(pgrp, PIDTYPE_PGID); in session_of_pgrp()
443 p = pid_task(pgrp, PIDTYPE_PID); in session_of_pgrp()
490 struct pid *pgrp; in tiocspgrp() local
512 pgrp = find_vpid(pgrp_nr); in tiocspgrp()
514 if (!pgrp) in tiocspgrp()
517 if (session_of_pgrp(pgrp) != task_session(current)) in tiocspgrp()
520 put_pid(real_tty->ctrl.pgrp); in tiocspgrp()
521 real_tty->ctrl.pgrp = get_pid(pgrp); in tiocspgrp()