Searched refs:pipe_2 (Results 1 - 2 of 2) sorted by relevance

/linux-master/tools/testing/selftests/clone3/
H A Dclone3_set_tid.c29 static int pipe_2[2]; variable
81 close(pipe_2[1]);
82 ret = read(pipe_2[0], &tmp, 1);
88 close(pipe_2[0]);
158 if (pipe(pipe_1) < 0 || pipe(pipe_2) < 0)
359 close(pipe_2[0]);
390 close(pipe_2[0]);
393 write(pipe_2[1], &buf, 1);
394 close(pipe_2[1]);
/linux-master/tools/perf/bench/
H A Dsched-pipe.c201 int pipe_1[2], pipe_2[2]; local
218 BUG_ON(pipe(pipe_2));
229 td->pipe_write = pipe_2[1];
232 td->pipe_read = pipe_2[0];

Completed in 129 milliseconds