/kernel/liteos_a/testsuites/unittest/extended/signal/smoke/ |
D | pipe_test_002.cpp | 38 int pipefd[2]; // 2, array subscript in TestPipeMultiProcess() local 41 retValue = pipe(pipefd); in TestPipeMultiProcess() 44 int *readFd = &pipefd[0]; in TestPipeMultiProcess() 45 int *writeFd = &pipefd[1]; in TestPipeMultiProcess() 65 close(pipefd[0]); in TestPipeMultiProcess() 77 ret = close(pipefd[1]); in TestPipeMultiProcess() 81 close(pipefd[1]); in TestPipeMultiProcess() 100 ret = close(pipefd[0]); in TestPipeMultiProcess()
|
D | It_ipc_pipe_004.cpp | 37 int pipefd[2]; // 2, array subscript in TestCase() local 38 int retValue = pipe2(pipefd, O_CLOEXEC); in TestCase() 41 int *readFd = &pipefd[0]; in TestCase() 42 int *writeFd = &pipefd[1]; in TestCase() 78 ret = close(pipefd[0]); in TestCase() 82 ret = close(pipefd[1]); in TestCase()
|
D | It_ipc_pipe_005.cpp | 35 int pipefd[2]; // 2, array subscript in TestCase() local 37 int ret = pipe2(pipefd, -1); in TestCase() 40 pipefd[0] = 2; // 2, set pipe fd in TestCase() 41 pipefd[1] = 3; // 3, set pipe fd in TestCase()
|
D | pipe_test_004.cpp | 39 int pipefd[2]; // 2, array subscript in TestPipeReturn() local
|
/kernel/linux/linux-5.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 | 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()
|
/kernel/liteos_a/testsuites/unittest/extended/signal/full/ |
D | pipe_test_001.cpp | 37 int pipefd[2]; // 2, array subscript in TestPipeSingleProcess() local 40 retValue = pipe(pipefd); in TestPipeSingleProcess() 43 int *readFd = &pipefd[0]; in TestPipeSingleProcess() 44 int *writeFd = &pipefd[1]; in TestPipeSingleProcess() 82 ret = close(pipefd[0]); in TestPipeSingleProcess() 86 ret = close(pipefd[1]); in TestPipeSingleProcess()
|
D | pipe_test_003.cpp | 37 int pipefd[2]; // 2, array subscript in TestPipeSingleProcessFcntl() local 40 retValue = pipe(pipefd); in TestPipeSingleProcessFcntl() 43 int *readFd = &pipefd[0]; in TestPipeSingleProcessFcntl() 44 int *writeFd = &pipefd[1]; in TestPipeSingleProcessFcntl() 96 ret = close(pipefd[0]); in TestPipeSingleProcessFcntl() 98 ret = close(pipefd[1]); in TestPipeSingleProcessFcntl()
|
D | pipe_test_006.cpp | 40 int pipefd[MAX_PIPES][2]; // 2, array subscript in PipeUnlinkTest() local 53 retValue = pipe(pipefd[i]); in PipeUnlinkTest() 62 retValue = close(pipefd[i][0]); in PipeUnlinkTest() 66 retValue = close(pipefd[i][1]); in PipeUnlinkTest()
|
D | pipe_test_005.cpp | 42 int pipefd[2]; // 2, array subscript in PipecommonWrite() local 47 int *readFd = &pipefd[0]; in PipecommonWrite() 48 int *writeFd = &pipefd[1]; in PipecommonWrite() 53 retValue = pipe(pipefd); in PipecommonWrite()
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
D | d_path.c | 34 int pipefd[2] = { -1, -1 }; in trigger_fstat_events() local 39 if (CHECK(pipe(pipefd) < 0, "trigger", "pipe failed\n")) in trigger_fstat_events() 61 ret = set_pathname(pipefd[0], pid); in trigger_fstat_events() 64 ret = set_pathname(pipefd[1], pid); in trigger_fstat_events() 84 fstat(pipefd[0], &fileStat); in trigger_fstat_events() 85 fstat(pipefd[1], &fileStat); in trigger_fstat_events() 94 close(pipefd[0]); in trigger_fstat_events() 95 close(pipefd[1]); in trigger_fstat_events()
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.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
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
D | userfaultfd.c | 88 static int uffd, uffd_flags, finished, *pipefd; variable 602 pollfd[1].fd = pipefd[cpu*2]; in uffd_poll_thread() 764 if (write(pipefd[cpu*2+1], &c, 1) != 1) { in stress() 1136 if (write(pipefd[1], &c, sizeof(c)) != sizeof(c)) { in userfaultfd_events_test() 1216 if (write(pipefd[1], &c, sizeof(c)) != sizeof(c)) { in userfaultfd_sig_test() 1271 pipefd = malloc(sizeof(int) * nr_cpus * 2); in userfaultfd_stress() 1272 if (!pipefd) { in userfaultfd_stress() 1277 if (pipe2(&pipefd[cpu*2], O_CLOEXEC | O_NONBLOCK)) { in userfaultfd_stress()
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.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() 2937 int pipefd[2]; in TEST() local 2971 ASSERT_EQ(0, pipe(pipefd)); in TEST() 2984 EXPECT_EQ(0, close(pipefd[1])); in TEST() [all …]
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | auto_dev-ioctl.h | 44 __s32 pipefd; member
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | auto_dev-ioctl.h | 50 __s32 pipefd; member
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | auto_dev-ioctl.h | 31 __s32 pipefd; member
|