Searched refs:pipefds (Results 1 – 5 of 5) sorted by relevance
| /linux/tools/testing/selftests/kvm/lib/ |
| 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/ |
| A D | resctrlfs.c | 795 int pipefds[2]; in filter_dmesg() local 799 ret = pipe(pipefds); in filter_dmesg() 807 close(pipefds[0]); in filter_dmesg() 808 dup2(pipefds[1], STDOUT_FILENO); in filter_dmesg() 813 close(pipefds[1]); in filter_dmesg() 814 fp = fdopen(pipefds[0], "r"); in filter_dmesg()
|
| /linux/tools/testing/selftests/net/mptcp/ |
| 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()
|
| /linux/tools/testing/selftests/kvm/include/ |
| A D | userfaultfd_util.h | 30 int *pipefds; member
|
| /linux/tools/testing/selftests/iommu/ |
| A D | iommufd.c | 1187 int pipefds[2]; in TEST_F() local 1194 ASSERT_EQ(0, pipe2(pipefds, O_CLOEXEC)); in TEST_F() 1204 close(pipefds[1]); in TEST_F() 1209 if (read(pipefds[0], &iova, 1) != 1) in TEST_F() 1213 close(pipefds[0]); in TEST_F() 1221 ASSERT_EQ(0, close(pipefds[1])); in TEST_F()
|
Completed in 12 milliseconds