Searched refs:pipefds (Results 1 – 6 of 6) sorted by relevance
| /linux/tools/testing/selftests/kvm/lib/ |
| H A D | userfaultfd_util.c | 122 uffd_desc->pipefds = calloc(sizeof(int), num_readers); in uffd_setup_demand_paging() 123 TEST_ASSERT(uffd_desc->pipefds, "Failed to alloc pipes"); in uffd_setup_demand_paging() 162 uffd_desc->pipefds[i] = pipes[1]; in uffd_setup_demand_paging() 186 TEST_ASSERT(write(uffd->pipefds[i], &c, 1) == 1, in uffd_stop_demand_paging() 196 close(uffd->pipefds[i]); in uffd_stop_demand_paging() 200 free(uffd->pipefds); in uffd_stop_demand_paging()
|
| /linux/tools/testing/selftests/resctrl/ |
| H A D | resctrlfs.c | 910 int pipefds[2]; in filter_dmesg() local 914 ret = pipe(pipefds); in filter_dmesg() 922 close(pipefds[0]); in filter_dmesg() 923 dup2(pipefds[1], STDOUT_FILENO); in filter_dmesg() 928 close(pipefds[1]); in filter_dmesg() 929 fp = fdopen(pipefds[0], "r"); in filter_dmesg()
|
| /linux/tools/testing/selftests/net/mptcp/ |
| H A D | mptcp_sockopt.c | 845 int pipefds[2]; in main() local 851 e1 = pipe(pipefds); in main() 857 close(pipefds[0]); in main() 858 ret = server(pipefds[1]); in main() 859 close(pipefds[1]); in main() 863 close(pipefds[1]); in main() 866 e1 = read(pipefds[0], &e1, 4); in main() 871 return client(pipefds[0]); in main() 873 close(pipefds[0]); in main()
|
| /linux/tools/testing/selftests/kvm/include/ |
| H A D | userfaultfd_util.h | 30 int *pipefds; member
|
| /linux/tools/testing/selftests/iommu/ |
| H A D | iommufd.c | 1400 int pipefds[2]; in TEST_F() local 1407 ASSERT_EQ(0, pipe2(pipefds, O_CLOEXEC)); in TEST_F() 1417 close(pipefds[1]); in TEST_F() 1422 if (read(pipefds[0], &iova, 1) != 1) in TEST_F() 1426 close(pipefds[0]); in TEST_F() 1434 ASSERT_EQ(0, close(pipefds[1])); in TEST_F()
|
| /linux/tools/testing/selftests/net/ |
| H A D | tls.c | 956 int pipefds[2]; in TEST_F() local 964 ASSERT_GE(pipe2(pipefds, O_NONBLOCK), 0); in TEST_F() 965 ASSERT_GE(fcntl(pipefds[0], F_SETPIPE_SZ, (MAX_FRAGS + 1) * 0x1000), 0); in TEST_F() 968 ASSERT_GE(vmsplice(pipefds[1], &sendchar_iov, 1, 0), 0); in TEST_F() 970 ASSERT_EQ(write(pipefds[1], sendbuf, sizeof(sendbuf)), sizeof(sendbuf)); in TEST_F() 972 EXPECT_EQ(splice(pipefds[0], NULL, self->fd, NULL, MAX_FRAGS + 0x1000, 0), in TEST_F()
|