Lines Matching refs:pid
36 struct pid *pgrp, *tty_pgrp;
175 void session_clear_tty(struct pid *session)
200 struct pid *tty_pgrp = NULL;
277 struct pid *tty_pgrp = tty_get_pgrp(tty);
289 struct pid *old_pgrp;
320 * cause pid memleak. Release current->signal->tty_old_pgrp
415 * tty_get_pgrp - return a ref counted pgrp pid
418 * Returns a refcounted instance of the pid struct for the process
421 struct pid *tty_get_pgrp(struct tty_struct *tty)
424 struct pid *pgrp;
435 * This checks not only the pgrp, but falls back on the pid if no
441 static struct pid *session_of_pgrp(struct pid *pgrp)
444 struct pid *sid = NULL;
459 * @p: returned pid
468 struct pid *pid;
476 pid = tty_get_pgrp(real_tty);
477 ret = put_user(pid_vnr(pid), p);
478 put_pid(pid);
486 * @p: pid pointer
495 struct pid *pgrp;