/Linux-v5.15/tools/testing/selftests/filesystems/epoll/ |
D | epoll_wakeup_test.c | 182 close(efd); in TEST() 183 close(sfd[0]); in TEST() 184 close(sfd[1]); in TEST() 213 close(efd); in TEST() 214 close(sfd[0]); in TEST() 215 close(sfd[1]); in TEST() 249 close(efd); in TEST() 250 close(sfd[0]); in TEST() 251 close(sfd[1]); in TEST() 252 close(sfd[2]); in TEST() [all …]
|
/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/ |
D | send_signal.c | 27 close(pipe_c2p[0]); in test_send_signal_common() 28 close(pipe_c2p[1]); in test_send_signal_common() 34 close(pipe_c2p[0]); in test_send_signal_common() 35 close(pipe_c2p[1]); in test_send_signal_common() 36 close(pipe_p2c[0]); in test_send_signal_common() 37 close(pipe_p2c[1]); in test_send_signal_common() 47 close(pipe_c2p[0]); /* close read */ in test_send_signal_common() 48 close(pipe_p2c[1]); /* close write */ in test_send_signal_common() 77 close(pipe_c2p[1]); in test_send_signal_common() 78 close(pipe_p2c[0]); in test_send_signal_common() [all …]
|
D | cgroup_v1v2.c | 39 close(fd); in run_test() 57 close(server_fd); in test_cgroup_v1v2() 60 close(client_fd); in test_cgroup_v1v2() 61 close(server_fd); in test_cgroup_v1v2() 69 close(cgroup_fd); in test_cgroup_v1v2() 77 close(server_fd); in test_cgroup_v1v2() 78 close(cgroup_fd); in test_cgroup_v1v2()
|
D | flow_dissector_reattach.c | 140 close(link2); in test_link_create_link_create() 143 close(link1); in test_link_create_link_create() 165 close(link); in test_prog_attach_link_create() 193 close(link); in test_link_create_prog_attach() 216 close(link); in test_link_create_prog_detach() 253 close(link); in test_link_create_close_query() 279 close(link); in test_link_update_no_old_prog() 304 close(link); in test_link_update_replace_old_prog() 329 close(link); in test_link_update_same_prog() 389 close(link); in test_link_update_invalid_opts() [all …]
|
D | d_path.c | 92 close(pipefd[0]); in trigger_fstat_events() 93 close(pipefd[1]); in trigger_fstat_events() 94 close(sockfd); in trigger_fstat_events() 95 close(procfd); in trigger_fstat_events() 96 close(devfd); in trigger_fstat_events() 97 close(localfd); in trigger_fstat_events() 98 close(indicatorfd); in trigger_fstat_events() 129 "close", in test_d_path() 140 "failed to get close path[%d]: %s vs %s\n", in test_d_path()
|
D | udp_limit.c | 42 /* We can reopen again after close. */ in test_udp_limit() 43 close(fd1); in test_udp_limit() 54 * - close fd1 - BPF_CGROUP_INET_SOCK_RELEASE in test_udp_limit() 68 close(fd1); in test_udp_limit() 70 close(fd2); in test_udp_limit() 73 close(cgroup_fd); in test_udp_limit()
|
D | sk_assign.c | 78 close(fd); in start_server() 100 close(fd); in connect_to_server() 195 close(client); in run_test() 197 close(srv_client); in run_test() 302 goto close; in test_sk_assign() 307 goto close; in test_sk_assign() 314 goto close; in test_sk_assign() 316 close(server); in test_sk_assign() 320 close: in test_sk_assign() 321 close(server); in test_sk_assign() [all …]
|
D | cgroup_attach_autodetach.c | 71 /* close programs and cgroup fd */ in test_cgroup_attach_autodetach() 73 close(allow_prog[i]); in test_cgroup_attach_autodetach() 77 close(cg); in test_cgroup_attach_autodetach() 94 close(fd); in test_cgroup_attach_autodetach() 106 close(allow_prog[i]); in test_cgroup_attach_autodetach() 108 close(cg); in test_cgroup_attach_autodetach()
|
/Linux-v5.15/tools/lib/subcmd/ |
D | run-command.c | 18 close(fd[0]); in close_pair() 19 close(fd[1]); in close_pair() 26 close(fd); in dup_devnull() 36 * In case of errors we must keep the promise to close FDs in start_command() 44 close(cmd->out); in start_command() 58 close(cmd->in); in start_command() 70 close(cmd->in); in start_command() 74 close(cmd->out); in start_command() 90 close(cmd->in); in start_command() 109 close(cmd->out); in start_command() [all …]
|
/Linux-v5.15/arch/um/drivers/ |
D | harddog_user.c | 24 close(data->stdin_fd); in pre_exec() 25 close(data->stdout_fd); in pre_exec() 26 close(data->close_me[0]); in pre_exec() 27 close(data->close_me[1]); in pre_exec() 69 close(out_fds[0]); in start_watchdog() 70 close(in_fds[1]); in start_watchdog() 97 close(in_fds[0]); in start_watchdog() 98 close(in_fds[1]); in start_watchdog() 100 close(out_fds[0]); in start_watchdog() 101 close(out_fds[1]); in start_watchdog() [all …]
|
D | slip_user.c | 71 close(data->close_me); in slip_pre_exec() 106 close(fds[1]); in slip_tramp() 111 close(fds[0]); in slip_tramp() 117 close(fds[0]); in slip_tramp() 118 close(fds[1]); in slip_tramp() 184 close(sfd); in slip_open() 186 close(mfd); in slip_open() 208 close(fd); in slip_close() 209 close(pri->slave); in slip_close() 246 .close = slip_close,
|
/Linux-v5.15/tools/testing/selftests/core/ |
D | close_range_test.c | 88 close(57); in TEST() 89 close(78); in TEST() 90 close(81); in TEST() 91 close(82); in TEST() 92 close(84); in TEST() 93 close(90); in TEST() 156 close(57); in TEST() 157 close(78); in TEST() 158 close(81); in TEST() 159 close(82); in TEST() [all …]
|
/Linux-v5.15/Documentation/userspace-api/media/cec/ |
D | cec-func-close.rst | 4 .. _cec-func-close: 7 cec close() 13 cec-close - Close a cec device 22 .. c:function:: int close( int fd ) 39 :c:func:`close()` returns 0 on success. On error, -1 is returned, and
|
/Linux-v5.15/Documentation/userspace-api/media/mediactl/ |
D | media-func-close.rst | 4 .. _media-func-close: 7 media close() 13 media-close - Close a media device 22 .. c:function:: int close( int fd ) 39 :c:func:`close()` returns 0 on success. On error, -1 is returned, and
|
D | request-func-close.rst | 4 .. _request-func-close: 7 request close() 13 request-close - Close a request file descriptor 22 .. c:function:: int close( int fd ) 41 :c:func:`close()` returns 0 on success. On error, -1 is
|
/Linux-v5.15/tools/testing/selftests/dmabuf-heaps/ |
D | dmabuf-heap.c | 54 close(fd); in open_vgem() 81 struct drm_gem_close close = { in close_handle() local 85 ioctl(vgem_fd, DRM_IOCTL_GEM_CLOSE, &close); in close_handle() 212 close(importer_fd); in test_alloc_and_import() 214 close(dmabuf_fd); in test_alloc_and_import() 216 close(heap_fd); in test_alloc_and_import() 252 /* close them all */ in test_alloc_zeroed() 254 close(dmabuf_fd[i]); in test_alloc_zeroed() 282 /* close them all */ in test_alloc_zeroed() 284 close(dmabuf_fd[i]); in test_alloc_zeroed() [all …]
|
/Linux-v5.15/arch/um/os-Linux/drivers/ |
D | ethertap_user.c | 87 close(data->data_me); in etap_pre_exec() 88 close(data->control_me); in etap_pre_exec() 121 close(data_remote); in etap_tramp() 122 close(control_remote); in etap_tramp() 188 close(control_fds[0]); in etap_open() 189 close(control_fds[1]); in etap_open() 191 close(data_fds[0]); in etap_open() 192 close(data_fds[1]); in etap_open() 201 close(fd); in etap_close() 211 close(pri->data_fd); in etap_close() [all …]
|
/Linux-v5.15/tools/testing/vsock/ |
D | vsock_test.c | 57 close(fd); in test_stream_connection_reset() 99 close(fd); in test_stream_bind_only_client() 129 close(fd); in test_stream_bind_only_server() 143 close(fd); in test_stream_client_close_client() 156 /* Wait for the remote to close the connection, before check in test_stream_client_close_server() 164 close(fd); in test_stream_client_close_server() 177 /* Wait for the remote to close the connection, before check in test_stream_server_close_client() 185 close(fd); in test_stream_server_close_client() 199 close(fd); in test_stream_server_close_server() 228 close(fds[i]); in test_stream_multiconn_client() [all …]
|
/Linux-v5.15/tools/testing/selftests/landlock/ |
D | base_test.c | 126 ASSERT_EQ(0, close(ruleset_fd)); in TEST() 163 ASSERT_EQ(0, close(ruleset_fd)); in TEST() 208 ASSERT_EQ(0, close(path_beneath_attr.parent_fd)); in TEST() 217 /* Sends the ruleset FD over a socketpair and then close it. */ in TEST() 220 ASSERT_EQ(0, close(socket_fds[0])); in TEST() 221 ASSERT_EQ(0, close(ruleset_fd_tx)); in TEST() 231 ASSERT_EQ(0, close(socket_fds[1])); in TEST() 239 ASSERT_EQ(0, close(ruleset_fd_rx)); in TEST() 246 ASSERT_EQ(0, close(dir_fd)); in TEST() 251 ASSERT_EQ(0, close(socket_fds[1])); in TEST() [all …]
|
D | fs_test.c | 254 * Mixing error codes from close(2) and open(2) should not lead to any in test_open_rel() 257 if (close(fd) != 0) in test_open_rel() 313 ASSERT_EQ(0, close(ruleset_fd)); in TEST_F_FORK() 321 ASSERT_EQ(0, close(ruleset_fd)); in TEST_F_FORK() 329 ASSERT_EQ(0, close(path_beneath.parent_fd)); in TEST_F_FORK() 336 ASSERT_EQ(0, close(path_beneath.parent_fd)); in TEST_F_FORK() 370 ASSERT_EQ(0, close(path_beneath.parent_fd)); in TEST_F_FORK() 376 ASSERT_EQ(0, close(ruleset_fd)); in TEST_F_FORK() 426 ASSERT_EQ(0, close(path_beneath.parent_fd)); in TEST_F_FORK() 447 ASSERT_EQ(0, close(path_beneath.parent_fd)); in add_path_beneath() [all …]
|
/Linux-v5.15/Documentation/usb/ |
D | gadget_printer.rst | 214 close(fd[0].fd); 236 close(fd[0].fd); 248 /* Close the device file. */ 249 close(fd[0].fd); 264 close(fd[0].fd); 292 close(fd[0].fd); 307 /* Close the device file. */ 308 close(fd[0].fd); 325 close(fd); 341 /* Close the device file. */ [all …]
|
/Linux-v5.15/tools/testing/selftests/net/ |
D | psock_fanout.c | 101 if (close(fd)) { in sock_fanout_open() 102 perror("close packet"); in sock_fanout_open() 183 if (close(pfd)) { in sock_fanout_set_ebpf() 184 perror("close ebpf"); in sock_fanout_set_ebpf() 296 if (close(fds[1]) || close(fds[0])) { in test_control_group() 346 if (close(fds[2]) || close(fds[1]) || close(fds[0])) { in test_control_group_max_num_members() 401 if (close(fds[0]) || close(fds[1]) || close(fds[2])) { in test_unique_fanout_group_ids() 448 fprintf(stderr, "close rings\n"); in test_datapath() 451 if (close(fds_udp[1][1]) || close(fds_udp[1][0]) || in test_datapath() 452 close(fds_udp[0][1]) || close(fds_udp[0][0]) || in test_datapath() [all …]
|
/Linux-v5.15/Documentation/userspace-api/media/v4l/ |
D | func-close.rst | 4 .. _func-close: 7 V4L2 close() 13 v4l2-close - Close a V4L2 device 22 .. c:function:: int close( int fd )
|
/Linux-v5.15/tools/testing/selftests/powerpc/mm/ |
D | stack_expansion_signal.c | 82 close(read_pipe.read_fd); in test_one_size() 83 close(write_pipe.write_fd); in test_one_size() 87 close(read_pipe.write_fd); in test_one_size() 88 close(write_pipe.read_fd); in test_one_size() 95 close(read_pipe.read_fd); in test_one_size() 96 close(write_pipe.write_fd); in test_one_size()
|
/Linux-v5.15/fs/jfs/ |
D | jfs_umount.c | 50 * update superblock and close log in jfs_umount() 61 * close fileset inode allocation map (aka fileset inode) in jfs_umount() 69 * close secondary aggregate inode allocation map in jfs_umount() 79 * close aggregate inode allocation map in jfs_umount() 87 * close aggregate block allocation map in jfs_umount() 112 * close log: in jfs_umount() 132 * close log: in jfs_umount_rw()
|