Lines Matching defs:pg
169 static void orphanpg(struct pgrp *pg);
181 struct pgrp * pg;
988 struct pgrp * pg;
995 pg = proc_pgrp(parent);
996 pgrp_add(pg, parent, child);
997 pg_rele(pg);
1257 struct pgrp * pg, *hispg;
1262 pg = fp->pg;
1269 if ((hispg != pg) &&
1333 fjarg.pg = pgrp;
2357 struct pgrp * pg;
2359 pg = proc_pgrp(p);
2371 if (pg == PGRP_NULL)
2372 panic("pgrp_remove: pg is NULL");
2373 pgrp_lock(pg);
2374 pg->pg_membercnt--;
2376 if (pg->pg_membercnt < 0)
2377 panic("pgprp: -ve membercnt pgprp:%p p:%p\n",pg, p);
2380 if (pg->pg_members.lh_first == 0) {
2381 pgrp_unlock(pg);
2382 pgdelete_dropref(pg);
2384 pgrp_unlock(pg);
2385 pg_rele(pg);
2528 struct pgrp * pg = PGRP_NULL;
2531 pg = tp->t_pgrp;
2533 if (pg != PGRP_NULL) {
2534 if ((pg->pg_listflags & PGRP_FLAG_DEAD) != 0)
2536 pg->pg_refcount++;
2540 return(pg);