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()
310 put_pid(tty->ctrl.pgrp); in disassociate_ctty()
312 tty->ctrl.pgrp = NULL; in disassociate_ctty()
424 struct pid *pgrp; in tty_get_pgrp() local
427 pgrp = get_pid(tty->ctrl.pgrp); in tty_get_pgrp()
430 return pgrp; in tty_get_pgrp()
441 static struct pid *session_of_pgrp(struct pid *pgrp) in session_of_pgrp() argument
446 p = pid_task(pgrp, PIDTYPE_PGID); in session_of_pgrp()
448 p = pid_task(pgrp, PIDTYPE_PID); in session_of_pgrp()
495 struct pid *pgrp; in tiocspgrp() local
517 pgrp = find_vpid(pgrp_nr); in tiocspgrp()
519 if (!pgrp) in tiocspgrp()
522 if (session_of_pgrp(pgrp) != task_session(current)) in tiocspgrp()
525 put_pid(real_tty->ctrl.pgrp); in tiocspgrp()
526 real_tty->ctrl.pgrp = get_pid(pgrp); in tiocspgrp()