Lines Matching refs:parent
173 static void pgrp_add(struct pgrp * pgrp, proc_t parent, proc_t child);
494 proc_t parent = PROC_NULL;
503 parent = PROC_NULL;
512 parent = PROC_NULL;
520 parent = pp;
526 return(parent);
622 proc_t parent;
628 parent = proc_ref_locked(pp);
629 if ((parent == PROC_NULL) && (pp != PROC_NULL) && (pp->p_stat != SZOMB) && ((pp->p_listflag & P_LIST_EXITED) != 0) && ((pp->p_listflag & P_LIST_CHILDDRAINED)== 0)){
635 return(parent);
973 * Parameters: parent The parent of the process to insert
979 * the child the parent process pointer and PPID of the parent,
986 pinsertchild(proc_t parent, proc_t child)
992 child->p_pptr = parent;
993 child->p_ppid = parent->p_pid;
995 pg = proc_pgrp(parent);
996 pgrp_add(pg, parent, child);
1000 parent->p_childrencnt++;
1001 LIST_INSERT_HEAD(&parent->p_children, child, p_sibling);
1246 * the group for terminal job control (those with a parent in a different
1295 proc_t parent;
1298 parent = proc_parent(p);
1299 if (parent != PROC_NULL) {
1300 hispgrp = proc_pgrp(parent);
1301 hissess = proc_session(parent);
1302 proc_rele(parent);
1307 * Check p's parent to see whether p qualifies its own process
2148 proc_childrenwalk(parent, callout, arg)
2149 struct proc * parent;
2169 for (p = parent->p_children.lh_first; (p != 0); p = p->p_sibling.le_next) {
2318 pgrp_add(struct pgrp * pgrp, struct proc * parent, struct proc * child)
2340 if ( parent != PROC_NULL) {
2341 LIST_INSERT_AFTER(parent, child, p_pglist);