Home
last modified time | relevance | path

Searched refs:pipefds (Results 1 – 5 of 5) sorted by relevance

/Linux-v6.6/tools/testing/selftests/kvm/lib/
Duserfaultfd_util.c32 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()
/Linux-v6.6/tools/testing/selftests/resctrl/
Dresctrlfs.c670 int pipefds[2]; in filter_dmesg() local
674 ret = pipe(pipefds); in filter_dmesg()
682 close(pipefds[0]); in filter_dmesg()
683 dup2(pipefds[1], STDOUT_FILENO); in filter_dmesg()
688 close(pipefds[1]); in filter_dmesg()
689 fp = fdopen(pipefds[0], "r"); in filter_dmesg()
/Linux-v6.6/tools/testing/selftests/net/mptcp/
Dmptcp_sockopt.c830 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()
/Linux-v6.6/tools/testing/selftests/kvm/include/
Duserfaultfd_util.h23 int pipefds[2]; member
/Linux-v6.6/tools/testing/selftests/iommu/
Diommufd.c893 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()