Home
last modified time | relevance | path

Searched refs:close (Results 1 – 25 of 1821) sorted by relevance

12345678910>>...73

/linux-6.1.9/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-6.1.9/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-6.1.9/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 …]
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()
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()
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 …]
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 …]
Dlsm_cgroup.c51 close(fd); in query_prog_cnt()
182 close(fd); in test_lsm_cgroup_functional()
196 close(fd); in test_lsm_cgroup_functional()
215 close(fd); in test_lsm_cgroup_functional()
268 close(listen_fd); in test_lsm_cgroup_functional()
269 close(client_fd); in test_lsm_cgroup_functional()
270 close(accepted_fd); in test_lsm_cgroup_functional()
287 close(fd); in test_lsm_cgroup_functional()
292 close(bind_link_fd); in test_lsm_cgroup_functional()
300 close(cgroup_fd); in test_lsm_cgroup_functional()
[all …]
/linux-6.1.9/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-6.1.9/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()
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.1.9/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-6.1.9/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()
312 ASSERT_EQ(0, close(socket_fds[0])); in TEST()
313 ASSERT_EQ(0, close(ruleset_fd_tx)); in TEST()
324 ASSERT_EQ(0, close(socket_fds[1])); in TEST()
[all …]
/linux-6.1.9/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-6.1.9/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()
254 close(dmabuf_fd[i]); in test_alloc_zeroed()
284 close(dmabuf_fd[i]); in test_alloc_zeroed()
286 close(heap_fd); in test_alloc_zeroed()
292 close(dmabuf_fd[i]); in test_alloc_zeroed()
[all …]
/linux-6.1.9/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-6.1.9/tools/testing/selftests/net/
Dpsock_fanout.c102 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()
Dreuseport_dualstack.c99 close(fd); in send_from_v4()
117 close(fd); in receive_once()
156 close(epfd); in test()
168 close(rcv_fds[i]); in main()
175 close(rcv_fds[i]); in main()
185 close(rcv_fds[i]); in main()
192 close(rcv_fds[i]); in main()
199 close(rcv_fds[i]); in main()
206 close(rcv_fds[i]); in main()
/linux-6.1.9/tools/testing/selftests/powerpc/mm/
Dstack_expansion_signal.c82 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.1.9/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()
167 close(fd); in test_stream_client_close_server()
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()
255 close(fds[i]); in test_stream_multiconn_server()
269 close(fd); in test_stream_msg_peek_client()
[all …]
/linux-6.1.9/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-6.1.9/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
/linux-6.1.9/tools/testing/selftests/vm/
Dmrelease_test.c89 close(pipefd[0]); in child_main()
91 close(pipefd[1]); in child_main()
125 close(pipefd[0]); in main()
126 close(pipefd[1]); in main()
140 close(pipefd[1]); in main()
143 close(pipefd[0]); in main()
192 close(pidfd); in main()
/linux-6.1.9/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()
/linux-6.1.9/tools/testing/selftests/bpf/
Dtest_bpftool_synctypes.py126 def close(self): member in FileExtractor
130 self.reader.close()
506 map_info.close()
511 man_map_info.close()
527 prog_info.close()
532 man_prog_info.close()
537 bashcomp_info.close()
550 bpf_info.close()
555 cgroup_info.close()
560 man_cgroup_info.close()
[all …]

12345678910>>...73