/linux-6.6.21/tools/power/acpi/tools/pfrut/ |
D | pfrut.c | 233 close(fd_update); in main() 234 close(fd_update_log); in main() 243 close(fd_update); in main() 244 close(fd_update_log); in main() 252 close(fd_update); in main() 253 close(fd_update_log); in main() 304 close(fd_update); in main() 305 close(fd_update_log); in main() 314 close(fd_update); in main() 315 close(fd_update_log); in main() [all …]
|
/linux-6.6.21/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.6.21/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 | 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 | 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 | lwt_redirect.c | 105 close(s); in new_packet_sock() 117 close(s); in new_packet_sock() 128 close(s); in new_packet_sock() 134 close(s); in new_packet_sock() 190 close(psock); in send_and_capture_test_packets() 222 close(tap_fd); in setup_redirect_target() 237 close(tap_fd); in test_lwt_redirect_normal() 251 close(tap_fd); in test_lwt_redirect_normal_nomac() 271 close(tap_fd); in __test_lwt_redirect_dev_down() 304 close(tap_fd); in test_lwt_redirect_dev_carrier_down()
|
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()
|
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()
|
D | lsm_cgroup.c | 52 close(fd); in query_prog_cnt() 183 close(fd); in test_lsm_cgroup_functional() 197 close(fd); in test_lsm_cgroup_functional() 216 close(fd); in test_lsm_cgroup_functional() 269 close(listen_fd); in test_lsm_cgroup_functional() 270 close(client_fd); in test_lsm_cgroup_functional() 271 close(accepted_fd); in test_lsm_cgroup_functional() 288 close(fd); in test_lsm_cgroup_functional() 293 close(bind_link_fd); in test_lsm_cgroup_functional() 301 close(cgroup_fd); in test_lsm_cgroup_functional() [all …]
|
D | sk_assign.c | 94 close(fd); in start_server() 116 close(fd); in connect_to_server() 208 close(client); in run_test() 210 close(srv_client); in run_test() 315 goto close; in test_sk_assign() 320 goto close; in test_sk_assign() 327 goto close; in test_sk_assign() 329 close(server); in test_sk_assign() 333 close: in test_sk_assign() 334 close(server); in test_sk_assign() [all …]
|
/linux-6.6.21/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.6.21/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() 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() 138 close(cmd->in); in start_command() [all …]
|
/linux-6.6.21/tools/testing/selftests/landlock/ |
D | base_test.c | 140 ASSERT_EQ(0, close(ruleset_fd)); in TEST() 186 ASSERT_EQ(0, close(path_beneath_attr.parent_fd)); in TEST() 187 ASSERT_EQ(0, close(ruleset_fd)); in TEST() 209 ASSERT_EQ(0, close(path_beneath_attr.parent_fd)); in TEST() 232 ASSERT_EQ(0, close(ruleset_fd)); in TEST() 253 ASSERT_EQ(0, close(ruleset_fd)); in TEST() 282 ASSERT_EQ(0, close(path_beneath_attr.parent_fd)); in TEST() 288 ASSERT_EQ(0, close(socket_fds[0])); in TEST() 289 ASSERT_EQ(0, close(ruleset_fd_tx)); in TEST() 297 ASSERT_EQ(0, close(socket_fds[1])); in TEST() [all …]
|
/linux-6.6.21/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.6.21/tools/testing/selftests/core/ |
D | close_range_test.c | 84 close(57); in TEST() 85 close(78); in TEST() 86 close(81); in TEST() 87 close(82); in TEST() 88 close(84); in TEST() 89 close(90); in TEST() 152 close(57); in TEST() 153 close(78); in TEST() 154 close(81); in TEST() 155 close(82); in TEST() [all …]
|
/linux-6.6.21/tools/testing/selftests/dmabuf-heaps/ |
D | dmabuf-heap.c | 53 close(fd); in open_vgem() 80 struct drm_gem_close close = { in close_handle() local 84 ioctl(vgem_fd, DRM_IOCTL_GEM_CLOSE, &close); in close_handle() 211 close(importer_fd); in test_alloc_and_import() 213 close(dmabuf_fd); in test_alloc_and_import() 215 close(heap_fd); in test_alloc_and_import() 253 close(dmabuf_fd[i]); in test_alloc_zeroed() 283 close(dmabuf_fd[i]); in test_alloc_zeroed() 285 close(heap_fd); in test_alloc_zeroed() 291 close(dmabuf_fd[i]); in test_alloc_zeroed() [all …]
|
/linux-6.6.21/io_uring/ |
D | openclose.c | 197 struct io_close *close = io_kiocb_to_cmd(req, struct io_close); in io_close_fixed() local 199 return __io_close_fixed(req->ctx, issue_flags, close->file_slot - 1); in io_close_fixed() 204 struct io_close *close = io_kiocb_to_cmd(req, struct io_close); in io_close_prep() local 211 close->fd = READ_ONCE(sqe->fd); in io_close_prep() 212 close->file_slot = READ_ONCE(sqe->file_index); in io_close_prep() 213 if (close->file_slot && close->fd) in io_close_prep() 222 struct io_close *close = io_kiocb_to_cmd(req, struct io_close); in io_close() local 227 if (close->file_slot) { in io_close() 234 if (close->fd >= fdt->max_fds) { in io_close() 238 file = rcu_dereference_protected(fdt->fd[close->fd], in io_close() [all …]
|
/linux-6.6.21/tools/testing/selftests/net/ |
D | psock_fanout.c | 102 if (close(fd)) { in sock_fanout_open() 184 if (close(pfd)) { in sock_fanout_set_ebpf() 297 if (close(fds[1]) || close(fds[0])) { in test_control_group() 347 if (close(fds[2]) || close(fds[1]) || close(fds[0])) { in test_control_group_max_num_members() 402 if (close(fds[0]) || close(fds[1]) || close(fds[2])) { in test_unique_fanout_group_ids() 452 if (close(fds_udp[1][1]) || close(fds_udp[1][0]) || in test_datapath() 453 close(fds_udp[0][1]) || close(fds_udp[0][0]) || in test_datapath() 454 close(fds[1]) || close(fds[0])) { in test_datapath()
|
/linux-6.6.21/tools/perf/tests/ |
D | event_groups.c | 73 close(fd); in setup_uncore_event() 92 close(group_fd); in run_test() 98 close(sibling_fd1); in run_test() 99 close(group_fd); in run_test() 103 close(sibling_fd2); in run_test() 104 close(sibling_fd1); in run_test() 105 close(group_fd); in run_test()
|
/linux-6.6.21/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-6.6.21/tools/testing/selftests/memfd/ |
D | memfd_test.c | 176 close(r); in mfd_fail_new() 585 close(fd2); in mfd_assert_shrink() 845 close(fd); in test_create() 859 close(fd); in test_create() 863 close(fd); in test_create() 867 close(fd); in test_create() 908 close(fd); in test_basic() 919 close(fd); in test_basic() 945 close(fd); in test_seal_write() 984 close(fd2); in test_seal_future_write() [all …]
|
/linux-6.6.21/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
|