Home
last modified time | relevance | path

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

12345678910>>...55

/Linux-v5.10/tools/testing/selftests/filesystems/epoll/
Depoll_wakeup_test.c167 close(efd); in TEST()
168 close(sfd[0]); in TEST()
169 close(sfd[1]); in TEST()
198 close(efd); in TEST()
199 close(sfd[0]); in TEST()
200 close(sfd[1]); in TEST()
234 close(efd); in TEST()
235 close(sfd[0]); in TEST()
236 close(sfd[1]); in TEST()
237 close(sfd[2]); in TEST()
[all …]
/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/
Dsend_signal.c29 close(pipe_c2p[0]); in test_send_signal_common()
30 close(pipe_c2p[1]); in test_send_signal_common()
36 close(pipe_c2p[0]); in test_send_signal_common()
37 close(pipe_c2p[1]); in test_send_signal_common()
38 close(pipe_p2c[0]); in test_send_signal_common()
39 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()
65 close(pipe_c2p[1]); in test_send_signal_common()
66 close(pipe_p2c[0]); in test_send_signal_common()
[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 …]
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_lookup.c132 close(fd); in make_socket()
139 close(fd); in make_socket()
219 close(fd); in make_server()
240 close(fd); in make_client()
286 goto close; in tcp_recv_send()
293 goto close; in tcp_recv_send()
297 close: in tcp_recv_send()
298 close(fd); in tcp_recv_send()
391 close(fd); in udp_recv_send()
448 close(net_fd); in attach_lookup_prog()
[all …]
Dcgroup_skb_sk_lookup.c42 close(serv_in_sk); in run_lookup_test()
43 close(in_sk); in run_lookup_test()
44 close(serv_sk); in run_lookup_test()
71 close(cgfd); in run_cgroup_bpf_test()
90 close(out_sk); in test_cgroup_skb_sk_lookup()
/Linux-v5.10/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()
183 close(sfd); in slip_open()
185 close(mfd); in slip_open()
207 close(fd); in slip_close()
208 close(pri->slave); in slip_close()
245 .close = slip_close,
Dport_user.c102 .close = port_close,
145 close(fd); in port_listen_fd()
161 close(data->sock_fd); in port_pre_exec()
164 close(data->pipe_fd); in port_pre_exec()
195 close(socket[0]); in port_connection()
197 close(socket[1]); in port_connection()
199 close(new); in port_connection()
/Linux-v5.10/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-v5.10/tools/testing/selftests/core/
Dclose_range_test.c67 close(57); in TEST()
68 close(78); in TEST()
69 close(81); in TEST()
70 close(82); in TEST()
71 close(84); in TEST()
72 close(90); in TEST()
135 close(57); in TEST()
136 close(78); in TEST()
137 close(81); in TEST()
138 close(82); in TEST()
[all …]
/Linux-v5.10/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-v5.10/samples/bpf/
Dtest_overhead_user.c48 close(fd); in test_task_rename()
54 close(fd); in test_task_rename()
72 close(fd); in test_urandom_read()
78 close(fd); in test_urandom_read()
120 close(prog_fd[0]); in unload_progs()
121 close(prog_fd[1]); in unload_progs()
122 close(event_fd[0]); in unload_progs()
123 close(event_fd[1]); in unload_progs()
/Linux-v5.10/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-v5.10/tools/testing/selftests/wireguard/qemu/
Dinit.c79 close(fd); in seed_rng()
117 close(fd); in enable_logging()
123 close(fd); in enable_logging()
129 close(fd); in enable_logging()
205 close(fd); in launch_tests()
232 close(fd); in ensure_console()
248 close(fd); in clear_leaks()
261 close(fd); in check_leaks()
268 close(fd); in check_leaks()
/Linux-v5.10/tools/testing/vsock/
Dvsock_test.c55 close(fd); in test_stream_connection_reset()
97 close(fd); in test_stream_bind_only_client()
127 close(fd); in test_stream_bind_only_server()
141 close(fd); in test_stream_client_close_client()
162 close(fd); in test_stream_client_close_server()
183 close(fd); in test_stream_server_close_client()
197 close(fd); in test_stream_server_close_server()
226 close(fds[i]); in test_stream_multiconn_client()
250 close(fds[i]); in test_stream_multiconn_server()
264 close(fd); in test_stream_msg_peek_client()
[all …]
/Linux-v5.10/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-v5.10/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-v5.10/tools/testing/selftests/bpf/
Dtest_tcp_check_syncookie_user.c44 close(fd); in start_server()
75 close(fd); in connect_to_server()
115 close(prog_fd); in get_map_fd_by_prog_id()
197 close(client); in run_test()
198 close(srv_client); in run_test()
253 close(server); in main()
254 close(server_v6); in main()
255 close(results); in main()
/Linux-v5.10/tools/testing/selftests/net/
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()
Dpsock_fanout.c88 if (close(fd)) { in sock_fanout_open()
170 if (close(pfd)) { in sock_fanout_set_ebpf()
283 if (close(fds[1]) || close(fds[0])) { in test_control_group()
338 if (close(fds[0]) || close(fds[1]) || close(fds[2])) { in test_unique_fanout_group_ids()
388 if (close(fds_udp[1][1]) || close(fds_udp[1][0]) || in test_datapath()
389 close(fds_udp[0][1]) || close(fds_udp[0][0]) || in test_datapath()
390 close(fds[1]) || close(fds[0])) { in test_datapath()
/Linux-v5.10/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()
302 close(dmabuf_fd); in test_alloc_compat()
314 close(dmabuf_fd); in test_alloc_compat()
316 close(heap_fd); in test_alloc_compat()
357 close(dmabuf_fd); in test_alloc_errors()
[all …]
/Linux-v5.10/tools/testing/selftests/memfd/
Dmemfd_test.c81 close(r); in mfd_fail_new()
486 close(fd2); in mfd_assert_shrink()
664 close(fd); in test_create()
675 close(fd); in test_create()
679 close(fd); in test_create()
683 close(fd); in test_create()
724 close(fd); in test_basic()
735 close(fd); in test_basic()
761 close(fd); in test_seal_write()
800 close(fd2); in test_seal_future_write()
[all …]
/Linux-v5.10/tools/testing/selftests/pidfd/
Dpidfd_setns_test.c98 close(fd); in switch_timens()
185 close(ipc_sockets[0]); in FIXTURE_SETUP()
193 close(ipc_sockets[1]); in FIXTURE_SETUP()
199 close(ipc_sockets[1]); in FIXTURE_SETUP()
201 close(ipc_sockets[0]); in FIXTURE_SETUP()
214 close(ipc_sockets[0]); in FIXTURE_SETUP()
222 close(ipc_sockets[1]); in FIXTURE_SETUP()
228 close(ipc_sockets[1]); in FIXTURE_SETUP()
230 close(ipc_sockets[0]); in FIXTURE_SETUP()
272 close(proc_fd); in FIXTURE_SETUP()
[all …]

12345678910>>...55