Home | History | Annotate | Download | only in pmu

Lines Matching refs:write_pipe

33 int sync_with_child(union pipe read_pipe, union pipe write_pipe)
37 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1);
55 int notify_parent(union pipe write_pipe)
59 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1);
64 int notify_parent_of_error(union pipe write_pipe)
68 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1);
97 static int eat_cpu_child(union pipe read_pipe, union pipe write_pipe)
107 notify_parent(write_pipe);
118 union pipe read_pipe, write_pipe;
129 if (pipe(write_pipe.fds) == -1)
134 exit(eat_cpu_child(write_pipe, read_pipe));
136 if (sync_with_child(read_pipe, write_pipe)) {