Lines Matching refs:reap
171 struct proc *reap, *p2, *first_p; in reap_status() local
177 reap = p->p_reaper; in reap_status()
179 reap = p; in reap_status()
182 if (reap == initproc) in reap_status()
184 rs->rs_reaper = reap->p_pid; in reap_status()
187 if (!LIST_EMPTY(&reap->p_reaplist)) { in reap_status()
188 first_p = LIST_FIRST(&reap->p_children); in reap_status()
190 first_p = LIST_FIRST(&reap->p_reaplist); in reap_status()
192 LIST_FOREACH(p2, &reap->p_reaplist, p_reapsibling) { in reap_status()
193 if (proc_realparent(p2) == reap) in reap_status()
206 struct proc *reap, *p2; in reap_getpids() local
215 reap = (p->p_treeflag & P_TREE_REAPER) == 0 ? p->p_reaper : p; in reap_getpids()
218 LIST_FOREACH(p2, &reap->p_reaplist, p_reapsibling) in reap_getpids()
225 LIST_FOREACH(p2, &reap->p_reaplist, p_reapsibling) { in reap_getpids()
233 if (proc_realparent(p2) == reap) in reap_getpids()