Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/kvm/
A Ddemand_paging_test.c286 int *pipefds = NULL; in run_test() local
309 pipefds = malloc(sizeof(int) * nr_vcpus * 2); in run_test()
310 TEST_ASSERT(pipefds, "Unable to allocate memory for pipefd"); in run_test()
327 r = pipe2(&pipefds[vcpu_id * 2], in run_test()
332 pipefds[vcpu_id * 2], p->uffd_mode, in run_test()
354 r = write(pipefds[vcpu_id * 2 + 1], &c, 1); in run_test()
373 free(pipefds); in run_test()
/linux/tools/testing/selftests/resctrl/
A Dresctrlfs.c670 int pipefds[2]; in filter_dmesg() local
674 ret = pipe(pipefds); in filter_dmesg()
681 close(pipefds[0]); in filter_dmesg()
682 dup2(pipefds[1], STDOUT_FILENO); in filter_dmesg()
687 close(pipefds[1]); in filter_dmesg()
688 fp = fdopen(pipefds[0], "r"); in filter_dmesg()
/linux/tools/testing/selftests/net/mptcp/
A Dmptcp_sockopt.c649 int pipefds[2]; in main() local
653 e1 = pipe(pipefds); in main()
659 return server(pipefds[1]); in main()
661 close(pipefds[1]); in main()
664 e1 = read(pipefds[0], &e1, 4); in main()
669 return client(pipefds[0]); in main()
671 close(pipefds[0]); in main()

Completed in 6 milliseconds