/Linux-v5.15/tools/testing/selftests/net/af_unix/ |
D | test_unix_oob.c | 16 static int pipefd[2]; variable 125 wait_for_signal(pipefd[0]); in producer() 135 wait_for_signal(pipefd[0]); in producer() 140 wait_for_signal(pipefd[0]); in producer() 151 wait_for_signal(pipefd[0]); in producer() 165 wait_for_signal(pipefd[0]); in producer() 200 pipe(pipefd); in main() 211 signal_producer(pipefd[1]); in main() 217 signal_producer(pipefd[1]); in main() 234 signal_producer(pipefd[1]); in main() [all …]
|
/Linux-v5.15/tools/testing/selftests/resctrl/ |
D | cat_test.c | 104 int ret, pipefd[2], sibling_cpu_no; in cat_perf_miss_val() local 165 if (pipe(pipefd)) { in cat_perf_miss_val() 197 close(pipefd[0]); in cat_perf_miss_val() 199 if (write(pipefd[1], &pipe_message, sizeof(pipe_message)) < in cat_perf_miss_val() 201 close(pipefd[1]); in cat_perf_miss_val() 206 close(pipefd[1]); in cat_perf_miss_val() 211 close(pipefd[1]); in cat_perf_miss_val() 214 if (read(pipefd[0], &pipe_message, in cat_perf_miss_val() 220 close(pipefd[0]); in cat_perf_miss_val()
|
D | resctrl_val.c | 598 int ret = 0, pipefd[2]; in resctrl_val() local 622 if (pipe(pipefd)) { in resctrl_val() 655 close(pipefd[0]); in resctrl_val() 657 if (write(pipefd[1], &pipe_message, sizeof(pipe_message)) < in resctrl_val() 660 close(pipefd[1]); in resctrl_val() 663 close(pipefd[1]); in resctrl_val() 713 close(pipefd[1]); in resctrl_val() 715 if (read(pipefd[0], &pipe_message, sizeof(pipe_message)) < in resctrl_val() 718 close(pipefd[0]); in resctrl_val() 722 close(pipefd[0]); in resctrl_val()
|
/Linux-v5.15/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.15/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.15/tools/testing/selftests/vm/ |
D | memfd_secret.c | 83 static void try_process_vm_read(int fd, int pipefd[2]) in try_process_vm_read() 89 if (read(pipefd[0], &mem, sizeof(mem)) < 0) { in try_process_vm_read() 107 static void try_ptrace(int fd, int pipefd[2]) in try_ptrace() 114 if (read(pipefd[0], &mem, sizeof(mem)) < 0) { in try_ptrace() 159 void (*func)(int fd, int pipefd[2])) in test_remote_access() 161 int pipefd[2]; in test_remote_access() local 165 if (pipe(pipefd)) { in test_remote_access() 177 func(fd, pipefd); in test_remote_access() 190 if (write(pipefd[1], &mem, sizeof(mem)) < 0) { in test_remote_access()
|
D | userfaultfd.c | 93 static int uffd_flags, finished, *pipefd; variable 381 if (pipefd) { in uffd_test_ctx_clear() 383 if (close(pipefd[i])) in uffd_test_ctx_clear() 386 free(pipefd); in uffd_test_ctx_clear() 387 pipefd = NULL; in uffd_test_ctx_clear() 457 pipefd = malloc(sizeof(int) * nr_cpus * 2); in uffd_test_ctx_init_ext() 458 if (!pipefd) in uffd_test_ctx_init_ext() 461 if (pipe2(&pipefd[cpu * 2], O_CLOEXEC | O_NONBLOCK)) in uffd_test_ctx_init_ext() 717 pollfd[1].fd = pipefd[cpu*2]; in uffd_poll_thread() 863 if (write(pipefd[cpu*2+1], &c, 1) != 1) in stress() [all …]
|
/Linux-v5.15/tools/testing/selftests/perf_events/ |
D | remove_on_exec.c | 124 int pipefd[2]; in TEST_F() local 138 ASSERT_NE(pipe(pipefd), -1); in TEST_F() 141 ASSERT_NE(dup2(pipefd[1], STDOUT_FILENO), -1); in TEST_F() 142 close(pipefd[0]); in TEST_F() 146 close(pipefd[1]); in TEST_F() 150 EXPECT_EQ(read(pipefd[0], &tmp, sizeof(int)), sizeof(int)); in TEST_F() 152 close(pipefd[0]); in TEST_F()
|
/Linux-v5.15/tools/testing/selftests/arm64/fp/ |
D | vec-syscfg.c | 76 int pipefd[2]; in get_child_rdvl() local 80 ret = pipe(pipefd); in get_child_rdvl() 93 close(pipefd[0]); in get_child_rdvl() 94 close(pipefd[1]); in get_child_rdvl() 104 ret = dup2(pipefd[1], 1); in get_child_rdvl() 118 close(pipefd[1]); in get_child_rdvl() 126 close(pipefd[0]); in get_child_rdvl() 135 close(pipefd[0]); in get_child_rdvl() 142 close(pipefd[0]); in get_child_rdvl() 146 out = fdopen(pipefd[0], "r"); in get_child_rdvl() [all …]
|
/Linux-v5.15/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.15/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 | 342 int pipefd; in autofs_dev_ioctl_setpipefd() local 346 if (param->setpipefd.pipefd == -1) in autofs_dev_ioctl_setpipefd() 349 pipefd = param->setpipefd.pipefd; in autofs_dev_ioctl_setpipefd() 366 pipe = fget(pipefd); in autofs_dev_ioctl_setpipefd() 377 sbi->pipefd = pipefd; in autofs_dev_ioctl_setpipefd()
|
D | autofs_i.h | 110 int pipefd; member
|
D | waitq.c | 41 sbi->pipefd = -1; in autofs_catatonic_mode()
|
/Linux-v5.15/tools/testing/selftests/kvm/ |
D | demand_paging_test.c | 129 int pipefd; member 137 int pipefd = uffd_args->pipefd; in uffd_handler_thread_fn() local 153 pollfd[1].fd = pipefd; in uffd_handler_thread_fn() 219 pthread_t *uffd_handler_thread, int pipefd, in setup_demand_paging() argument 266 uffd_args->pipefd = pipefd; in setup_demand_paging()
|
/Linux-v5.15/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.15/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.15/tools/perf/tests/ |
D | code-reading.c | 467 int pipefd[2]; in syscall_something() local 471 if (pipe(pipefd) < 0) { in syscall_something() 475 close(pipefd[1]); in syscall_something() 476 close(pipefd[0]); in syscall_something()
|
/Linux-v5.15/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 1566 int pipefd[2]; in setup_trace_fixture() local 1571 ASSERT_EQ(0, pipe(pipefd)); in setup_trace_fixture() 1578 close(pipefd[0]); in setup_trace_fixture() 1579 start_tracer(_metadata, pipefd[1], tracee, func, args, in setup_trace_fixture() 1583 close(pipefd[1]); in setup_trace_fixture() 1585 read(pipefd[0], &sync, 1); in setup_trace_fixture() 1586 close(pipefd[0]); in setup_trace_fixture() 2941 int pipefd[2]; in TEST() local 2975 ASSERT_EQ(0, pipe(pipefd)); in TEST() 2988 EXPECT_EQ(0, close(pipefd[1])); in TEST() [all …]
|
/Linux-v5.15/include/uapi/linux/ |
D | auto_dev-ioctl.h | 50 __s32 pipefd; member
|
/Linux-v5.15/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.
|