Lines Matching refs:pipefd
20 static int alloc_noexit(unsigned long nr_pages, int pipefd) in alloc_noexit() argument
36 if (write(pipefd, "", 1) < 0) in alloc_noexit()
66 static int child_main(int pipefd[], size_t size) in child_main() argument
71 close(pipefd[0]); in child_main()
72 res = alloc_noexit(MB(size) / psize(), pipefd[1]); in child_main()
73 close(pipefd[1]); in child_main()
79 int pipefd[2], pidfd; in main() local
107 if (pipe(pipefd)) in main()
112 close(pipefd[0]); in main()
113 close(pipefd[1]); in main()
119 res = child_main(pipefd, size); in main()
127 close(pipefd[1]); in main()
129 res = read(pipefd[0], &byte, 1); in main()
130 close(pipefd[0]); in main()