Lines Matching refs:pgrp

401 	if (!tty->pgrp) {  in tty_check_change()
405 if (task_pgrp(current) == tty->pgrp) in tty_check_change()
525 put_pid(tty->pgrp); in __proc_set_tty()
526 tty->pgrp = get_pid(task_pgrp(current)); in __proc_set_tty()
627 tty_pgrp = get_pid(tty->pgrp); in tty_signal_session_leader()
628 if (tty->pgrp) in tty_signal_session_leader()
629 p->signal->tty_old_pgrp = get_pid(tty->pgrp); in tty_signal_session_leader()
723 put_pid(tty->pgrp); in __tty_hangup()
725 tty->pgrp = NULL; in __tty_hangup()
926 put_pid(tty->pgrp); in disassociate_ctty()
928 tty->pgrp = NULL; in disassociate_ctty()
1647 put_pid(tty->pgrp); in release_one_tty()
2239 if (tty->pgrp) { in __tty_fasync()
2240 pid = tty->pgrp; in __tty_fasync()
2335 struct pid *pgrp; in tty_do_resize() local
2343 pgrp = tty_get_pgrp(tty); in tty_do_resize()
2344 if (pgrp) in tty_do_resize()
2345 kill_pgrp(pgrp, SIGWINCH, 1); in tty_do_resize()
2346 put_pid(pgrp); in tty_do_resize()
2516 struct pid *pgrp; in tty_get_pgrp() local
2519 pgrp = get_pid(tty->pgrp); in tty_get_pgrp()
2522 return pgrp; in tty_get_pgrp()
2533 static struct pid *session_of_pgrp(struct pid *pgrp) in session_of_pgrp() argument
2538 p = pid_task(pgrp, PIDTYPE_PGID); in session_of_pgrp()
2540 p = pid_task(pgrp, PIDTYPE_PID); in session_of_pgrp()
2589 struct pid *pgrp; in tiocspgrp() local
2607 pgrp = find_vpid(pgrp_nr); in tiocspgrp()
2609 if (!pgrp) in tiocspgrp()
2612 if (session_of_pgrp(pgrp) != task_session(current)) in tiocspgrp()
2616 put_pid(real_tty->pgrp); in tiocspgrp()
2617 real_tty->pgrp = get_pid(pgrp); in tiocspgrp()
3156 tty->pgrp = NULL; in alloc_tty_struct()