Home
last modified time | relevance | path

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

/tools/testing/selftests/kvm/
Ddemand_paging_test.c290 int *pipefds = NULL; in run_test() local
321 pipefds = malloc(sizeof(int) * nr_vcpus * 2); in run_test()
322 TEST_ASSERT(pipefds, "Unable to allocate memory for pipefd"); in run_test()
350 r = pipe2(&pipefds[vcpu_id * 2], in run_test()
355 pipefds[vcpu_id * 2], p->uffd_mode, in run_test()
391 r = write(pipefds[vcpu_id * 2 + 1], &c, 1); in run_test()
411 free(pipefds); in run_test()
/tools/testing/selftests/resctrl/
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()