Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/tools/testing/selftests/kvm/
Ddemand_paging_test.c259 int *pipefds = NULL; in run_test() local
286 pipefds = malloc(sizeof(int) * nr_vcpus * 2); in run_test()
287 TEST_ASSERT(pipefds, "Unable to allocate memory for pipefd"); in run_test()
304 r = pipe2(&pipefds[vcpu_id * 2], in run_test()
310 pipefds[vcpu_id * 2], in run_test()
347 r = write(pipefds[vcpu_id * 2 + 1], &c, 1); in run_test()
368 free(pipefds); in run_test()
/kernel/linux/linux-5.10/tools/testing/selftests/resctrl/
Dresctrlfs.c647 int pipefds[2]; in filter_dmesg() local
651 ret = pipe(pipefds); in filter_dmesg()
658 close(pipefds[0]); in filter_dmesg()
659 dup2(pipefds[1], STDOUT_FILENO); in filter_dmesg()
664 close(pipefds[1]); in filter_dmesg()
665 fp = fdopen(pipefds[0], "r"); in filter_dmesg()