Searched refs:pipefds (Results 1 – 6 of 6) sorted by relevance
/openbmc/linux/tools/testing/selftests/kvm/lib/ |
H A D | userfaultfd_util.c | 32 int pipefd = uffd_desc->pipefds[0]; in uffd_handler_thread_fn() 151 ret = pipe2(uffd_desc->pipefds, O_CLOEXEC | O_NONBLOCK); in uffd_setup_demand_paging() 172 ret = write(uffd->pipefds[1], &c, 1); in uffd_stop_demand_paging() 180 close(uffd->pipefds[1]); in uffd_stop_demand_paging() 181 close(uffd->pipefds[0]); in uffd_stop_demand_paging()
|
/openbmc/linux/tools/testing/selftests/resctrl/ |
H A D | resctrlfs.c | 603 int pipefds[2]; in filter_dmesg() local 607 ret = pipe(pipefds); in filter_dmesg() 615 close(pipefds[0]); in filter_dmesg() 616 dup2(pipefds[1], STDOUT_FILENO); in filter_dmesg() 621 close(pipefds[1]); in filter_dmesg() 622 fp = fdopen(pipefds[0], "r"); in filter_dmesg()
|
/openbmc/linux/tools/testing/selftests/net/mptcp/ |
H A D | mptcp_sockopt.c | 830 int pipefds[2]; in main() local 836 e1 = pipe(pipefds); in main() 842 return server(pipefds[1]); in main() 844 close(pipefds[1]); in main() 847 e1 = read(pipefds[0], &e1, 4); in main() 852 return client(pipefds[0]); in main() 854 close(pipefds[0]); in main()
|
/openbmc/linux/tools/testing/selftests/kvm/include/ |
H A D | userfaultfd_util.h | 23 int pipefds[2]; member
|
/openbmc/linux/tools/testing/selftests/iommu/ |
H A D | iommufd.c | 893 int pipefds[2]; in TEST_F() local 900 ASSERT_EQ(0, pipe2(pipefds, O_CLOEXEC)); in TEST_F() 910 close(pipefds[1]); in TEST_F() 915 if (read(pipefds[0], &iova, 1) != 1) in TEST_F() 919 close(pipefds[0]); in TEST_F() 927 ASSERT_EQ(0, close(pipefds[1])); in TEST_F()
|
/openbmc/u-boot/common/ |
H A D | cli_hush.c | 1539 int pipefds[2]; /* pipefds[0] is for reading */ local 1688 if (pipe(pipefds)<0) perror_msg_and_die("pipe"); 1689 nextout = pipefds[1]; 1692 pipefds[0] = -1; 1716 if (pipefds[0]!=-1) { 1717 close(pipefds[0]); /* opposite end of our output pipe */ 1755 nextin = pipefds[0];
|