Lines Matching defs:parent
169 static void pgrp_add(struct pgrp * pgrp, proc_t parent, proc_t child);
474 proc_t parent = PROC_NULL;
483 parent = PROC_NULL;
492 parent = PROC_NULL;
500 parent = pp;
506 return(parent);
602 proc_t parent;
608 parent = proc_refinternal_locked(pp);
609 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)){
615 return(parent);
917 * Parameters: parent The parent of the process to insert
923 * the child the parent process pointer and PPID of the parent,
930 pinsertchild(proc_t parent, proc_t child)
936 child->p_pptr = parent;
937 child->p_ppid = parent->p_pid;
939 pg = proc_pgrp(parent);
940 pgrp_add(pg, parent, child);
944 parent->p_childrencnt++;
945 LIST_INSERT_HEAD(&parent->p_children, child, p_sibling);
1169 * the group for terminal job control (those with a parent in a different
1218 proc_t parent;
1221 parent = proc_parent(p);
1222 if (parent != PROC_NULL) {
1223 hispgrp = proc_pgrp(parent);
1224 hissess = proc_session(parent);
1225 proc_rele(parent);
1230 * Check p's parent to see whether p qualifies its own process
1963 proc_childrenwalk(parent, callout, arg)
1964 struct proc * parent;
1984 for (p = parent->p_children.lh_first; (p != 0); p = p->p_sibling.le_next) {
2133 pgrp_add(struct pgrp * pgrp, struct proc * parent, struct proc * child)
2155 if ( parent != PROC_NULL) {
2156 LIST_INSERT_AFTER(parent, child, p_pglist);