Lines Matching refs:depth
108 static void child(struct shared_state *ss, int depth);
111 child_fork(struct shared_state *ss, int depth) in child_fork() argument
117 child(ss, depth); in child_fork()
152 child_verify(struct shared_state *ss, int depth, int newval, int oldval) in child_verify() argument
163 depth, foundval, expectval, oldval); in child_verify()
168 child(struct shared_state *ss, int depth) in child() argument
172 if (depth < 1 || depth >= DEPTH) in child()
173 child_errx("Bad depth %d", depth); in child()
175 dprintf("P%d (pid %d) started\n", depth, mypid); in child()
176 switch (depth) { in child()
201 child_fork(ss, depth + 1); in child()
204 child_verify(ss, depth, mypid, mypid); in child()
226 pid = child_fork(ss, depth + 1); in child()
240 child_verify(ss, depth, pid, oldval); in child()
259 child_verify(ss, depth, oldval, oldval); in child()
262 child_errx("Bad depth %d", depth); in child()
265 dprintf("P%d (pid %d) exiting\n", depth, mypid); in child()
266 ss->exiting[depth] = true; in child()