/Linux-v5.10/tools/testing/selftests/resctrl/ |
D | cat_test.c | 125 int ret, pipefd[2], sibling_cpu_no; in cat_perf_miss_val() local 186 if (pipe(pipefd)) { in cat_perf_miss_val() 218 close(pipefd[0]); in cat_perf_miss_val() 220 if (write(pipefd[1], &pipe_message, sizeof(pipe_message)) < in cat_perf_miss_val() 222 close(pipefd[1]); in cat_perf_miss_val() 227 close(pipefd[1]); in cat_perf_miss_val() 232 close(pipefd[1]); in cat_perf_miss_val() 235 if (read(pipefd[0], &pipe_message, in cat_perf_miss_val() 241 close(pipefd[0]); in cat_perf_miss_val()
|
D | resctrl_val.c | 575 int ret = 0, pipefd[2]; in resctrl_val() local 599 if (pipe(pipefd)) { in resctrl_val() 632 close(pipefd[0]); in resctrl_val() 634 if (write(pipefd[1], &pipe_message, sizeof(pipe_message)) < in resctrl_val() 637 close(pipefd[1]); in resctrl_val() 640 close(pipefd[1]); in resctrl_val() 690 close(pipefd[1]); in resctrl_val() 692 if (read(pipefd[0], &pipe_message, sizeof(pipe_message)) < in resctrl_val() 695 close(pipefd[0]); in resctrl_val() 699 close(pipefd[0]); in resctrl_val()
|
/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/ |
D | d_path.c | 32 int pipefd[2] = { -1, -1 }; in trigger_fstat_events() local 37 if (CHECK(pipe(pipefd) < 0, "trigger", "pipe failed\n")) in trigger_fstat_events() 59 ret = set_pathname(pipefd[0], pid); in trigger_fstat_events() 62 ret = set_pathname(pipefd[1], pid); in trigger_fstat_events() 82 fstat(pipefd[0], &fileStat); in trigger_fstat_events() 83 fstat(pipefd[1], &fileStat); in trigger_fstat_events() 92 close(pipefd[0]); in trigger_fstat_events() 93 close(pipefd[1]); in trigger_fstat_events()
|
/Linux-v5.10/tools/testing/selftests/powerpc/signal/ |
D | sig_sc_double_restart.c | 83 int pipefd[2]; in test_restart() local 87 if (pipe(pipefd) == -1) { in test_restart() 120 while ((fd = dup(pipefd[0])) != 512) { in test_restart() 149 if (write(pipefd[1], DATA, DLEN) != DLEN) { in test_restart() 153 close(pipefd[0]); in test_restart() 154 close(pipefd[1]); in test_restart()
|
/Linux-v5.10/tools/testing/selftests/kcmp/ |
D | kcmp_test.c | 36 int pipefd[2]; in main() local 50 if (pipe(pipefd)) { in main() 64 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, pipefd[0], &ev)) { in main() 69 fddup = dup2(pipefd[1], duped_num); in main() 143 ret = sys_kcmp(pid1, pid1, KCMP_EPOLL_TFD, pipefd[1], in main()
|
/Linux-v5.10/fs/autofs/ |
D | inode.c | 69 seq_printf(m, ",fd=%d", sbi->pipefd); in autofs_show_options() 138 int pipefd = -1; in parse_options() local 148 sbi->pipefd = -1; in parse_options() 162 if (match_int(args, &pipefd)) in parse_options() 164 sbi->pipefd = pipefd; in parse_options() 217 return (sbi->pipefd < 0); in parse_options() 238 sbi->pipefd = -1; in autofs_fill_super() 322 sbi->pipefd, pid_nr(sbi->oz_pgrp)); in autofs_fill_super() 323 pipe = fget(sbi->pipefd); in autofs_fill_super()
|
D | dev-ioctl.c | 341 int pipefd; in autofs_dev_ioctl_setpipefd() local 345 if (param->setpipefd.pipefd == -1) in autofs_dev_ioctl_setpipefd() 348 pipefd = param->setpipefd.pipefd; in autofs_dev_ioctl_setpipefd() 365 pipe = fget(pipefd); in autofs_dev_ioctl_setpipefd() 376 sbi->pipefd = pipefd; in autofs_dev_ioctl_setpipefd()
|
D | autofs_i.h | 109 int pipefd; member
|
D | waitq.c | 41 sbi->pipefd = -1; in autofs_catatonic_mode()
|
/Linux-v5.10/tools/testing/selftests/kvm/ |
D | demand_paging_test.c | 113 int pipefd; member 121 int pipefd = uffd_args->pipefd; in uffd_handler_thread_fn() local 137 pollfd[1].fd = pipefd; in uffd_handler_thread_fn() 203 pthread_t *uffd_handler_thread, int pipefd, in setup_demand_paging() argument 240 uffd_args->pipefd = pipefd; in setup_demand_paging()
|
/Linux-v5.10/samples/watch_queue/ |
D | watch_test.c | 156 int pipefd[2], fd; in main() local 158 if (pipe2(pipefd, O_NOTIFICATION_PIPE) == -1) { in main() 162 fd = pipefd[0]; in main()
|
/Linux-v5.10/tools/testing/selftests/proc/ |
D | proc-pid-vm.c | 258 int pipefd[2]; in main() local 275 if (pipe(pipefd) == -1) { in main() 278 if (dup2(pipefd[1], 0) != 0) { in main() 292 if (read(pipefd[0], &_, 1) != 1) { in main()
|
/Linux-v5.10/tools/testing/selftests/vm/ |
D | userfaultfd.c | 87 static int uffd, uffd_flags, finished, *pipefd; variable 599 pollfd[1].fd = pipefd[cpu*2]; in uffd_poll_thread() 761 if (write(pipefd[cpu*2+1], &c, 1) != 1) { in stress() 1133 if (write(pipefd[1], &c, sizeof(c)) != sizeof(c)) { in userfaultfd_events_test() 1213 if (write(pipefd[1], &c, sizeof(c)) != sizeof(c)) { in userfaultfd_sig_test() 1268 pipefd = malloc(sizeof(int) * nr_cpus * 2); in userfaultfd_stress() 1269 if (!pipefd) { in userfaultfd_stress() 1274 if (pipe2(&pipefd[cpu*2], O_CLOEXEC | O_NONBLOCK)) { in userfaultfd_stress()
|
/Linux-v5.10/tools/perf/tests/ |
D | code-reading.c | 475 int pipefd[2]; in syscall_something() local 479 if (pipe(pipefd) < 0) { in syscall_something() 483 close(pipefd[1]); in syscall_something() 484 close(pipefd[0]); in syscall_something()
|
/Linux-v5.10/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 1562 int pipefd[2]; in setup_trace_fixture() local 1567 ASSERT_EQ(0, pipe(pipefd)); in setup_trace_fixture() 1574 close(pipefd[0]); in setup_trace_fixture() 1575 start_tracer(_metadata, pipefd[1], tracee, func, args, in setup_trace_fixture() 1579 close(pipefd[1]); in setup_trace_fixture() 1581 read(pipefd[0], &sync, 1); in setup_trace_fixture() 1582 close(pipefd[0]); in setup_trace_fixture() 2928 int pipefd[2]; in TEST() local 2962 ASSERT_EQ(0, pipe(pipefd)); in TEST() 2975 EXPECT_EQ(0, close(pipefd[1])); in TEST() [all …]
|
/Linux-v5.10/include/uapi/linux/ |
D | auto_dev-ioctl.h | 50 __s32 pipefd; member
|
/Linux-v5.10/Documentation/filesystems/ |
D | autofs-mount-control.rst | 307 the pipefd field of struct args_setpipefd set to descriptor of the pipe.
|
D | autofs.rst | 498 in `setpipefd.pipefd` to re-establish communication with a daemon.
|