Lines Matching refs:pgrp

396 	struct pid *pgrp, *tty_pgrp;  in __tty_check_change()  local
403 pgrp = task_pgrp(current); in __tty_check_change()
406 tty_pgrp = tty->pgrp; in __tty_check_change()
409 if (tty_pgrp && pgrp != tty->pgrp) { in __tty_check_change()
416 kill_pgrp(pgrp, sig, 1); in __tty_check_change()
536 put_pid(tty->pgrp); in __proc_set_tty()
537 tty->pgrp = get_pid(task_pgrp(current)); in __proc_set_tty()
639 tty_pgrp = get_pid(tty->pgrp); in tty_signal_session_leader()
640 if (tty->pgrp) in tty_signal_session_leader()
641 p->signal->tty_old_pgrp = get_pid(tty->pgrp); in tty_signal_session_leader()
735 put_pid(tty->pgrp); in __tty_hangup()
737 tty->pgrp = NULL; in __tty_hangup()
927 put_pid(tty->pgrp); in disassociate_ctty()
929 tty->pgrp = NULL; in disassociate_ctty()
1642 put_pid(tty->pgrp); in release_one_tty()
2233 if (tty->pgrp) { in __tty_fasync()
2234 pid = tty->pgrp; in __tty_fasync()
2329 struct pid *pgrp; in tty_do_resize() local
2337 pgrp = tty_get_pgrp(tty); in tty_do_resize()
2338 if (pgrp) in tty_do_resize()
2339 kill_pgrp(pgrp, SIGWINCH, 1); in tty_do_resize()
2340 put_pid(pgrp); in tty_do_resize()
2510 struct pid *pgrp; in tty_get_pgrp() local
2513 pgrp = get_pid(tty->pgrp); in tty_get_pgrp()
2516 return pgrp; in tty_get_pgrp()
2527 static struct pid *session_of_pgrp(struct pid *pgrp) in session_of_pgrp() argument
2532 p = pid_task(pgrp, PIDTYPE_PGID); in session_of_pgrp()
2534 p = pid_task(pgrp, PIDTYPE_PID); in session_of_pgrp()
2583 struct pid *pgrp; in tiocspgrp() local
2600 pgrp = find_vpid(pgrp_nr); in tiocspgrp()
2602 if (!pgrp) in tiocspgrp()
2605 if (session_of_pgrp(pgrp) != task_session(current)) in tiocspgrp()
2609 put_pid(real_tty->pgrp); in tiocspgrp()
2610 real_tty->pgrp = get_pid(pgrp); in tiocspgrp()
3149 tty->pgrp = NULL; in alloc_tty_struct()