Lines Matching refs:pipefd
28 static int alloc_noexit(unsigned long nr_pages, int pipefd) in alloc_noexit() argument
46 if (write(pipefd, "", 1) < 0) { in alloc_noexit()
84 static int child_main(int pipefd[], size_t size) in child_main() argument
89 close(pipefd[0]); in child_main()
90 res = alloc_noexit(MB(size) / PAGE_SIZE, pipefd[1]); in child_main()
91 close(pipefd[1]); in child_main()
97 int pipefd[2], pidfd; in main() local
118 if (pipe(pipefd)) { in main()
125 close(pipefd[0]); in main()
126 close(pipefd[1]); in main()
132 res = child_main(pipefd, size); in main()
140 close(pipefd[1]); in main()
142 res = read(pipefd[0], &byte, 1); in main()
143 close(pipefd[0]); in main()