Lines Matching refs:pid
35 struct pid *pgrp, *tty_pgrp;
172 void session_clear_tty(struct pid *session)
196 struct pid *tty_pgrp = NULL;
270 struct pid *tty_pgrp = tty_get_pgrp(tty);
281 struct pid *old_pgrp;
311 * cause pid memleak. Release current->signal->tty_old_pgrp
401 * tty_get_pgrp - return a ref counted pgrp pid
404 * Returns a refcounted instance of the pid struct for the process
407 struct pid *tty_get_pgrp(struct tty_struct *tty)
410 struct pid *pgrp;
421 * This checks not only the pgrp, but falls back on the pid if no
427 static struct pid *session_of_pgrp(struct pid *pgrp)
430 struct pid *sid = NULL;
445 * @p: returned pid
454 struct pid *pid;
462 pid = tty_get_pgrp(real_tty);
463 ret = put_user(pid_vnr(pid), p);
464 put_pid(pid);
472 * @p: pid pointer
481 struct pid *pgrp;