Lines Matching refs:pipefd
20 static int alloc_noexit(unsigned long nr_pages, int pipefd) in alloc_noexit() argument
38 if (write(pipefd, "", 1) < 0) { in alloc_noexit()
76 static int child_main(int pipefd[], size_t size) in child_main() argument
81 close(pipefd[0]); in child_main()
82 res = alloc_noexit(MB(size) / psize(), pipefd[1]); in child_main()
83 close(pipefd[1]); in child_main()
89 int pipefd[2], pidfd; in main() local
110 if (pipe(pipefd)) { in main()
117 close(pipefd[0]); in main()
118 close(pipefd[1]); in main()
124 res = child_main(pipefd, size); in main()
132 close(pipefd[1]); in main()
134 res = read(pipefd[0], &byte, 1); in main()
135 close(pipefd[0]); in main()