Home
last modified time | relevance | path

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

12345678910>>...113

/linux-5.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-5.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 …]
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 …]
Dd_path.c92 close(pipefd[0]); in trigger_fstat_events()
93 close(pipefd[1]); in trigger_fstat_events()
94 close(sockfd); in trigger_fstat_events()
95 close(procfd); in trigger_fstat_events()
96 close(devfd); in trigger_fstat_events()
97 close(localfd); in trigger_fstat_events()
98 close(indicatorfd); in trigger_fstat_events()
129 "close", in test_d_path()
140 "failed to get close path[%d]: %s vs %s\n", in test_d_path()
Dudp_limit.c43 /* We can reopen again after close. */ in test_udp_limit()
44 close(fd1); in test_udp_limit()
55 * - close fd1 - BPF_CGROUP_INET_SOCK_RELEASE in test_udp_limit()
69 close(fd1); in test_udp_limit()
71 close(fd2); in test_udp_limit()
74 close(cgroup_fd); in test_udp_limit()
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 …]
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_attach_autodetach.c71 /* close programs and cgroup fd */ in test_cgroup_attach_autodetach()
73 close(allow_prog[i]); in test_cgroup_attach_autodetach()
77 close(cg); in test_cgroup_attach_autodetach()
94 close(fd); in test_cgroup_attach_autodetach()
106 close(allow_prog[i]); in test_cgroup_attach_autodetach()
108 close(cg); in test_cgroup_attach_autodetach()
/linux-5.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()
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-5.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,
/linux-5.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-5.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-5.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-5.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-5.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()
154 /* Wait for the remote to close the connection, before check in test_stream_client_close_server()
162 close(fd); in test_stream_client_close_server()
175 /* Wait for the remote to close the connection, before check in test_stream_server_close_client()
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()
[all …]
/linux-5.10/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-5.10/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-5.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-5.10/fs/jfs/
Djfs_umount.c50 * update superblock and close log in jfs_umount()
61 * close fileset inode allocation map (aka fileset inode) in jfs_umount()
69 * close secondary aggregate inode allocation map in jfs_umount()
79 * close aggregate inode allocation map in jfs_umount()
87 * close aggregate block allocation map in jfs_umount()
112 * close log: in jfs_umount()
132 * close log: in jfs_umount_rw()
/linux-5.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-5.10/tools/testing/selftests/net/
Dpsock_fanout.c88 if (close(fd)) { in sock_fanout_open()
89 perror("close packet"); in sock_fanout_open()
170 if (close(pfd)) { in sock_fanout_set_ebpf()
171 perror("close ebpf"); 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()
385 fprintf(stderr, "close rings\n"); in test_datapath()
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()
[all …]
/linux-5.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-5.10/tools/testing/selftests/android/ion/
Dionutils.c136 /* in case of error: close the buffer fd */ in ion_export_buffer_fd()
138 close(buffer_fd); in ion_export_buffer_fd()
143 /* In case of error: close the ion client fd */ in ion_export_buffer_fd()
145 close(ionfd); in ion_export_buffer_fd()
185 close(buffd); in ion_import_buffer_fd()
196 /* close the buffer fd */ in ion_close_buffer_fd()
198 close(ion_info->buffd); in ion_close_buffer_fd()
199 /* Finally, close the client fd */ in ion_close_buffer_fd()
201 close(ion_info->ionfd); in ion_close_buffer_fd()

12345678910>>...113