Lines Matching defs:pg
164 static void orphanpg(struct pgrp *pg);
178 struct pgrp * pg;
932 struct pgrp * pg;
939 pg = proc_pgrp(parent);
940 pgrp_add(pg, parent, child);
941 pg_rele(pg);
1180 struct pgrp * pg, *hispg;
1185 pg = fp->pg;
1192 if ((hispg != pg) &&
1256 fjarg.pg = pgrp;
2172 struct pgrp * pg;
2174 pg = proc_pgrp(p);
2186 if (pg == PGRP_NULL)
2187 panic("pgrp_remove: pg is NULL");
2188 pgrp_lock(pg);
2189 pg->pg_membercnt--;
2191 if (pg->pg_membercnt < 0)
2192 panic("pgprp: -ve membercnt pgprp:%x p:%x\n",(unsigned int)pg, (unsigned int)p);
2195 if (pg->pg_members.lh_first == 0) {
2196 pgrp_unlock(pg);
2197 pgdelete_dropref(pg);
2199 pgrp_unlock(pg);
2200 pg_rele(pg);
2342 struct pgrp * pg = PGRP_NULL;
2345 pg = tp->t_pgrp;
2347 if (pg != PGRP_NULL) {
2348 if ((pg->pg_listflags & PGRP_FLAG_DEAD) != 0)
2350 pg->pg_refcount++;
2354 return(pg);