Home | History | Annotate | Download | only in pmu

Lines Matching defs:read_pipe

33 int sync_with_child(union pipe read_pipe, union pipe write_pipe)
38 FAIL_IF(read(read_pipe.read_fd, &c, 1) != 1);
45 int wait_for_parent(union pipe read_pipe)
49 FAIL_IF(read(read_pipe.read_fd, &c, 1) != 1);
97 static int eat_cpu_child(union pipe read_pipe, union pipe write_pipe)
108 wait_for_parent(read_pipe);
118 union pipe read_pipe, write_pipe;
126 if (pipe(read_pipe.fds) == -1)
134 exit(eat_cpu_child(write_pipe, read_pipe));
136 if (sync_with_child(read_pipe, write_pipe)) {