Home
last modified time | relevance | path

Searched full:close (Results 1 – 25 of 2315) sorted by relevance

12345678910>>...93

/Linux-v6.1/tools/testing/selftests/filesystems/epoll/
Depoll_wakeup_test.c182 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-v6.1/tools/power/acpi/tools/pfrut/
Dpfrut.c221 close(fd_update); in main()
222 close(fd_update_log); in main()
231 close(fd_update); in main()
232 close(fd_update_log); in main()
240 close(fd_update); in main()
241 close(fd_update_log); in main()
292 close(fd_update); in main()
293 close(fd_update_log); in main()
302 close(fd_update); in main()
303 close(fd_update_log); in main()
[all …]
/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/
Dsend_signal.c27 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()
80 close(pipe_c2p[1]); in test_send_signal_common()
81 close(pipe_p2c[0]); in test_send_signal_common()
[all …]
Dsockmap_ktls.c74 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()
Dcgroup_v1v2.c39 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()
Dflow_dissector_reattach.c140 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 …]
Dudp_limit.c40 /* We can reopen again after close. */ in test_udp_limit()
41 close(fd1); in test_udp_limit()
52 * - close fd1 - BPF_CGROUP_INET_SOCK_RELEASE in test_udp_limit()
64 close(fd1); in test_udp_limit()
66 close(fd2); in test_udp_limit()
69 close(cgroup_fd); in test_udp_limit()
Dlsm_cgroup.c51 close(fd); in query_prog_cnt()
180 close(fd); in test_lsm_cgroup_functional()
194 close(fd); in test_lsm_cgroup_functional()
213 close(fd); in test_lsm_cgroup_functional()
259 close(listen_fd); in test_lsm_cgroup_functional()
260 close(client_fd); in test_lsm_cgroup_functional()
261 close(accepted_fd); in test_lsm_cgroup_functional()
278 close(fd); in test_lsm_cgroup_functional()
283 close(bind_link_fd); in test_lsm_cgroup_functional()
284 /* Don't close bind_link_fd2, exercise cgroup release cleanup. */ in test_lsm_cgroup_functional()
[all …]
Dsk_assign.c78 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 …]
/Linux-v6.1/tools/lib/subcmd/
Drun-command.c18 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-v6.1/arch/um/drivers/
Dharddog_user.c24 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 …]
Dslip_user.c71 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-v6.1/tools/testing/selftests/core/
Dclose_range_test.c84 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-v6.1/Documentation/userspace-api/media/mediactl/
Dmedia-func-close.rst4 .. _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
Drequest-func-close.rst4 .. _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-v6.1/Documentation/userspace-api/media/cec/
Dcec-func-close.rst4 .. _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-v6.1/io_uring/
Dopenclose.c190 struct io_close *close = io_kiocb_to_cmd(req, struct io_close); in io_close_fixed() local
192 return __io_close_fixed(req->ctx, issue_flags, close->file_slot - 1); in io_close_fixed()
197 struct io_close *close = io_kiocb_to_cmd(req, struct io_close); in io_close_prep() local
204 close->fd = READ_ONCE(sqe->fd); in io_close_prep()
205 close->file_slot = READ_ONCE(sqe->file_index); in io_close_prep()
206 if (close->file_slot && close->fd) in io_close_prep()
215 struct io_close *close = io_kiocb_to_cmd(req, struct io_close); in io_close() local
220 if (close->file_slot) { in io_close()
227 if (close->fd >= fdt->max_fds) { in io_close()
231 file = rcu_dereference_protected(fdt->fd[close->fd], in io_close()
[all …]
/Linux-v6.1/tools/testing/selftests/dmabuf-heaps/
Ddmabuf-heap.c54 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-v6.1/arch/um/os-Linux/drivers/
Dethertap_user.c87 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-v6.1/tools/testing/vsock/
Dvsock_test.c60 close(fd); in test_stream_connection_reset()
102 close(fd); in test_stream_bind_only_client()
132 close(fd); in test_stream_bind_only_server()
146 close(fd); in test_stream_client_close_client()
159 /* Wait for the remote to close the connection, before check in test_stream_client_close_server()
167 close(fd); in test_stream_client_close_server()
180 /* Wait for the remote to close the connection, before check in test_stream_server_close_client()
188 close(fd); in test_stream_server_close_client()
202 close(fd); in test_stream_server_close_server()
231 close(fds[i]); in test_stream_multiconn_client()
[all …]
/Linux-v6.1/tools/testing/selftests/landlock/
Dbase_test.c140 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()
299 ASSERT_EQ(0, close(path_beneath_attr.parent_fd)); in TEST()
308 /* Sends the ruleset FD over a socketpair and then close it. */ in TEST()
312 ASSERT_EQ(0, close(socket_fds[0])); in TEST()
313 ASSERT_EQ(0, close(ruleset_fd_tx)); in TEST()
[all …]
/Linux-v6.1/Documentation/usb/
Dgadget_printer.rst214 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-v6.1/tools/testing/selftests/net/
Dpsock_fanout.c102 if (close(fd)) { in sock_fanout_open()
103 perror("close packet"); in sock_fanout_open()
184 if (close(pfd)) { in sock_fanout_set_ebpf()
185 perror("close ebpf"); 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()
449 fprintf(stderr, "close rings\n"); in test_datapath()
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()
[all …]
/Linux-v6.1/Documentation/userspace-api/media/v4l/
Dfunc-close.rst4 .. _func-close:
7 V4L2 close()
13 v4l2-close - Close a V4L2 device
22 .. c:function:: int close( int fd )
/Linux-v6.1/tools/testing/selftests/pidfd/
Dpidfd_wait.c60 EXPECT_EQ(close(pidfd), 0); in TEST()
68 EXPECT_EQ(close(pidfd), 0); in TEST()
81 EXPECT_EQ(close(pidfd), 0); in TEST()
111 close(pfd[1]); in TEST()
114 close(pfd[0]); in TEST()
119 close(pfd[0]); in TEST()
129 close(pfd[1]); in TEST()
146 EXPECT_EQ(close(pidfd), 0); in TEST()
179 EXPECT_EQ(close(pidfd), 0); in TEST()
230 EXPECT_EQ(close(pidfd), 0); in TEST()

12345678910>>...93