Lines Matching defs:pgid
490 pgfind(pid_t pgid)
496 LIST_FOREACH(pgrp, PGRPHASH(pgid), pg_hash) {
497 if (pgrp->pg_id == pgid) {
572 * pgid must be equal to the pid of p.
576 enterpgrp(struct proc *p, pid_t pgid, struct pgrp *pgrp, struct session *sess)
583 KASSERT(p->p_pid == pgid,
584 ("enterpgrp: new pgrp and pid != pgid"));
585 KASSERT(pgfind(pgid) == NULL,
586 ("enterpgrp: pgrp with pgid exists"));
625 pgrp->pg_id = pgid;
634 LIST_INSERT_HEAD(PGRPHASH(pgid), pgrp, pg_hash);
821 * F_SETOWN with our pgid. The proctree lock ensures that
1042 " pgrp %p, pgid %d, sess %p, sesscnt %d, mem %p\n",