/linux-6.12.1/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-6.12.1/tools/power/acpi/tools/pfrut/ |
D | pfrut.c | 235 close(fd_update); in main() 236 close(fd_update_log); in main() 245 close(fd_update); in main() 246 close(fd_update_log); in main() 254 close(fd_update); in main() 255 close(fd_update_log); in main() 306 close(fd_update); in main() 307 close(fd_update_log); in main() 316 close(fd_update); in main() 317 close(fd_update_log); in main() [all …]
|
/linux-6.12.1/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() 48 close(pipe_c2p[0]); /* close read */ in test_send_signal_common() 49 close(pipe_p2c[1]); /* close write */ in test_send_signal_common() 84 close(pipe_c2p[1]); in test_send_signal_common() 85 close(pipe_p2c[0]); in test_send_signal_common() [all …]
|
D | sockmap_basic.c | 55 close(s); in connected_socket_v4() 107 close(map); in test_sockmap_create_update_free() 108 close(s); in test_sockmap_create_update_free() 237 close(sk); in test_sockmap_update() 321 close(iter_fd); in test_sockmap_copy() 327 close(sock_fd[i]); in test_sockmap_copy() 498 close(c1); in test_sockmap_skb_verdict_shutdown() 499 close(p1); in test_sockmap_skb_verdict_shutdown() 554 close(c0); in test_sockmap_skb_verdict_fionread() 555 close(p0); in test_sockmap_skb_verdict_fionread() [all …]
|
D | setget_sockopt.c | 56 close(sfd); in test_tcp() 59 close(sfd); in test_tcp() 60 close(cfd); in test_tcp() 81 close(sfd); in test_udp() 108 close(sfd); in test_ktls() 133 close(fd); in test_ktls() 140 close(cfd); in test_ktls() 152 close(fd); in test_ktls() 153 close(cfd); in test_ktls() 154 close(sfd); in test_ktls() [all …]
|
D | sockmap_ktls.c | 74 close(cli); in test_sockmap_ktls_disconnect_after_delete() 76 close(srv); in test_sockmap_ktls_disconnect_after_delete() 107 goto close; in test_sockmap_ktls_update_fails_when_sock_has_ulp() 111 goto close; in test_sockmap_ktls_update_fails_when_sock_has_ulp() 115 goto close; in test_sockmap_ktls_update_fails_when_sock_has_ulp() 120 goto close; in test_sockmap_ktls_update_fails_when_sock_has_ulp() 125 goto close; in test_sockmap_ktls_update_fails_when_sock_has_ulp() 131 close: in test_sockmap_ktls_update_fails_when_sock_has_ulp() 132 close(s); in test_sockmap_ktls_update_fails_when_sock_has_ulp() 162 close(map); in run_tests()
|
D | cgroup_v1v2.c | 37 close(fd); in run_test() 59 close(server_fd); in test_cgroup_v1v2() 62 close(client_fd); in test_cgroup_v1v2() 63 close(server_fd); in test_cgroup_v1v2() 71 close(cgroup_fd); in test_cgroup_v1v2() 79 close(server_fd); in test_cgroup_v1v2() 80 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 | 107 #define close(fd) syscall(__NR_close_range, fd, fd, 0) in trigger_fstat_events() macro 109 close(pipefd[0]); in trigger_fstat_events() 110 close(pipefd[1]); in trigger_fstat_events() 111 close(sockfd); in trigger_fstat_events() 112 close(procfd); in trigger_fstat_events() 113 close(devfd); in trigger_fstat_events() 114 close(localfd); in trigger_fstat_events() 115 close(indicatorfd); in trigger_fstat_events() 117 #undef close in trigger_fstat_events() 148 "close", in test_d_path_basic() [all …]
|
D | sock_destroy.c | 29 close(iter_fd); in start_iter_sockets() 65 close(clien); in test_tcp_client() 67 close(accept_serv); in test_tcp_client() 69 close(serv); in test_tcp_client() 106 close(clien); in test_tcp_server() 108 close(accept_serv); in test_tcp_server() 110 close(serv); in test_tcp_server() 141 close(clien); in test_udp_client() 143 close(serv); in test_udp_client() 219 close(cgroup_fd); in test_sock_destroy()
|
/linux-6.12.1/tools/testing/selftests/landlock/ |
D | scoped_abstract_unix_test.c | 44 EXPECT_EQ(0, close(ruleset_fd)); in create_fs_domain() 102 EXPECT_EQ(0, close(pipe_parent[1])); in TEST_F() 123 EXPECT_EQ(0, close(stream_client)); in TEST_F() 133 EXPECT_EQ(0, close(dgram_client)); in TEST_F() 137 EXPECT_EQ(0, close(pipe_parent[0])); in TEST_F() 156 EXPECT_EQ(0, close(stream_server)); in TEST_F() 157 EXPECT_EQ(0, close(dgram_server)); in TEST_F() 198 EXPECT_EQ(0, close(pipe_parent[1])); in TEST_F() 199 EXPECT_EQ(0, close(pipe_child[0])); in TEST_F() 223 EXPECT_EQ(0, close(stream_server)); in TEST_F() [all …]
|
D | scoped_signal_test.c | 103 EXPECT_EQ(0, close(pipe_parent[1])); in TEST_F() 112 EXPECT_EQ(0, close(pipe_parent[0])); in TEST_F() 135 EXPECT_EQ(0, close(pipe_parent[0])); in TEST_F() 142 EXPECT_EQ(0, close(pipe_parent[1])); in TEST_F() 196 EXPECT_EQ(0, close(pipe_child[0])); in TEST_F() 197 EXPECT_EQ(0, close(pipe_parent[1])); in TEST_F() 203 EXPECT_EQ(0, close(pipe_child[1])); in TEST_F() 207 EXPECT_EQ(0, close(pipe_parent[0])); in TEST_F() 225 EXPECT_EQ(0, close(pipe_parent[0])); in TEST_F() 226 EXPECT_EQ(0, close(pipe_child[1])); in TEST_F() [all …]
|
D | base_test.c | 141 ASSERT_EQ(0, close(ruleset_fd)); in TEST() 187 ASSERT_EQ(0, close(path_beneath_attr.parent_fd)); in TEST() 188 ASSERT_EQ(0, close(ruleset_fd)); in TEST() 210 ASSERT_EQ(0, close(path_beneath_attr.parent_fd)); in TEST() 233 ASSERT_EQ(0, close(ruleset_fd)); in TEST() 254 ASSERT_EQ(0, close(ruleset_fd)); in TEST() 283 ASSERT_EQ(0, close(path_beneath_attr.parent_fd)); in TEST() 285 /* Sends the ruleset FD over a socketpair and then close it. */ in TEST() 289 ASSERT_EQ(0, close(socket_fds[0])); in TEST() 290 ASSERT_EQ(0, close(ruleset_fd_tx)); in TEST() [all …]
|
/linux-6.12.1/arch/um/drivers/ |
D | harddog_user.c | 25 close(data->stdin_fd); in pre_exec() 26 close(data->stdout_fd); in pre_exec() 27 close(data->close_me[0]); in pre_exec() 28 close(data->close_me[1]); in pre_exec() 70 close(out_fds[0]); in start_watchdog() 71 close(in_fds[1]); in start_watchdog() 98 close(in_fds[0]); in start_watchdog() 99 close(in_fds[1]); in start_watchdog() 101 close(out_fds[0]); in start_watchdog() 102 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-6.12.1/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-6.12.1/tools/testing/selftests/core/ |
D | close_range_test.c | 79 close(57); in TEST() 80 close(78); in TEST() 81 close(81); in TEST() 82 close(82); in TEST() 83 close(84); in TEST() 84 close(90); in TEST() 147 close(57); in TEST() 148 close(78); in TEST() 149 close(81); in TEST() 150 close(82); in TEST() [all …]
|
/linux-6.12.1/tools/testing/selftests/powerpc/papr_vpd/ |
D | papr_vpd.c | 24 FAIL_IF(close(devfd) != 0); in dev_papr_vpd_open_close() 46 FAIL_IF(close(devfd) != 0); in dev_papr_vpd_get_handle_all() 59 FAIL_IF(close(fd)); in dev_papr_vpd_get_handle_all() 84 FAIL_IF(close(devfd) != 0); in dev_papr_vpd_get_handle_byte_at_a_time() 103 FAIL_IF(close(fd)); in dev_papr_vpd_get_handle_byte_at_a_time() 131 FAIL_IF(close(devfd) != 0); in dev_papr_vpd_unterm_loc_code() 150 FAIL_IF(close(devfd) != 0); in dev_papr_vpd_null_handle() 170 /* close the handle without reading it */ in papr_vpd_close_handle_without_reading() 171 FAIL_IF(close(fd) != 0); in papr_vpd_close_handle_without_reading() 173 FAIL_IF(close(devfd) != 0); in papr_vpd_close_handle_without_reading() [all …]
|
/linux-6.12.1/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-6.12.1/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-6.12.1/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-6.12.1/tools/testing/selftests/dmabuf-heaps/ |
D | dmabuf-heap.c | 56 close(fd); in open_vgem() 83 struct drm_gem_close close = { in close_handle() local 87 ioctl(vgem_fd, DRM_IOCTL_GEM_CLOSE, &close); in close_handle() 201 close(importer_fd); in test_alloc_and_import() 204 close(dmabuf_fd); in test_alloc_and_import() 205 close(heap_fd); in test_alloc_and_import() 238 /* close them all */ in test_alloc_zeroed() 240 close(dmabuf_fd[i]); in test_alloc_zeroed() 276 /* close them all */ in test_alloc_zeroed() 278 close(dmabuf_fd[k]); in test_alloc_zeroed() [all …]
|
/linux-6.12.1/tools/testing/vsock/ |
D | vsock_test.c | 64 close(fd); in test_stream_connection_reset() 106 close(fd); in test_stream_bind_only_client() 136 close(fd); in test_stream_bind_only_server() 150 close(fd); in test_stream_client_close_client() 163 /* Wait for the remote to close the connection, before check in test_stream_client_close_server() 171 close(fd); in test_stream_client_close_server() 184 /* Wait for the remote to close the connection, before check in test_stream_server_close_client() 192 close(fd); in test_stream_server_close_client() 206 close(fd); in test_stream_server_close_server() 235 close(fds[i]); in test_stream_multiconn_client() [all …]
|
/linux-6.12.1/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 …]
|