Home
last modified time | relevance | path

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

12345678910>>...12

/tools/testing/selftests/bpf/prog_tests/
Dsend_signal.c30 close(pipe_c2p[0]); in test_send_signal_common()
31 close(pipe_c2p[1]); in test_send_signal_common()
37 close(pipe_c2p[0]); in test_send_signal_common()
38 close(pipe_c2p[1]); in test_send_signal_common()
39 close(pipe_p2c[0]); in test_send_signal_common()
40 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()
68 close(pipe_c2p[1]); in test_send_signal_common()
69 close(pipe_p2c[0]); in test_send_signal_common()
[all …]
Dsockopt_inherit.c35 close(fd); in connect_to_server()
98 close(client_fd); in server_thread()
125 close(fd); in start_server()
132 close(fd); in start_server()
217 close(client_fd); in run_test()
220 close(server_fd); in run_test()
234 close(cgroup_fd); in test_sockopt_inherit()
Draw_tp_writable_test_run.c67 close(tp_fd); in test_raw_tp_writable_test_run()
77 close(filter_fd); in test_raw_tp_writable_test_run()
79 close(bpf_fd); in test_raw_tp_writable_test_run()
Dtcp_rtt.c115 close(fd); in connect_to_server()
176 close(client_fd); in run_test()
199 close(fd); in start_server()
243 close(client_fd); in server_thread()
271 close(server_fd); in test_tcp_rtt()
273 close(cgroup_fd); in test_tcp_rtt()
/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 …]
Dpager.c59 close(1); in wait_for_pager()
60 close(2); in wait_for_pager()
108 close(pager_process.in); in setup_pager()
/tools/testing/selftests/efivarfs/
Dopen-unlink.c27 close(fd); in set_immutable()
39 close(fd); in set_immutable()
58 close(fd); in get_immutable()
62 close(fd); in get_immutable()
101 close(fd); in main()
/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()
Dtest_cgroup_attach.c207 close(foo); in test_foo_bar()
208 close(bar); in test_foo_bar()
284 close(cgroup_storage_fd); in prog_load_cnt()
445 close(allow_prog[i]); in test_multiprog()
446 close(cg1); in test_multiprog()
447 close(cg2); in test_multiprog()
448 close(cg3); in test_multiprog()
449 close(cg4); in test_multiprog()
450 close(cg5); in test_multiprog()
505 close(allow_prog[i]); in test_autodetach()
[all …]
Dtest_socket_cookie.c55 close(fd); in start_server()
86 close(fd); in connect_to_server()
182 close(client_fd); in run_test()
183 close(server_fd); in run_test()
211 close(cgfd); in main()
Dtest_lru_map.c87 close(mfd); in bpf_map_lookup_elem_with_ref_bit()
99 close(pfd); in bpf_map_lookup_elem_with_ref_bit()
100 close(mfd); in bpf_map_lookup_elem_with_ref_bit()
236 close(expected_map_fd); in test_lru_sanity0()
237 close(lru_map_fd); in test_lru_sanity0()
306 close(expected_map_fd); in test_lru_sanity1()
307 close(lru_map_fd); in test_lru_sanity1()
419 close(expected_map_fd); in test_lru_sanity2()
420 close(lru_map_fd); in test_lru_sanity2()
489 close(expected_map_fd); in test_lru_sanity3()
[all …]
Dcgroup_helpers.c61 close(fd); in enable_all_controllers()
66 close(fd); in enable_all_controllers()
82 close(cfd); in enable_all_controllers()
86 close(cfd); in enable_all_controllers()
163 close(fd); in join_cgroup_from_top()
/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()
387 if (close(fds_udp[1][1]) || close(fds_udp[1][0]) || in test_datapath()
388 close(fds_udp[0][1]) || close(fds_udp[0][0]) || in test_datapath()
389 close(fds[1]) || close(fds[0])) { in test_datapath()
/tools/testing/selftests/android/ion/
Dionmap_test.c51 close(fd); in open_vgem()
78 struct drm_gem_close close = { 0 }; in close_handle() local
80 close.handle = handle; in close_handle()
81 ioctl(vgem_fd, DRM_IOCTL_GEM_CLOSE, &close); in close_handle()
131 close(vgem_fd); in main()
/tools/power/cpupower/utils/helpers/
Dmsr.c40 close(fd); in read_msr()
43 close(fd); in read_msr()
69 close(fd); in write_msr()
72 close(fd); in write_msr()
Dsysfs.c29 close(fd); in sysfs_read_file()
34 close(fd); in sysfs_read_file()
76 close(fd); in sysfs_is_cpu_online()
80 close(fd); in sysfs_is_cpu_online()
140 close(fd); in sysfs_idlestate_read_file()
145 close(fd); in sysfs_idlestate_read_file()
175 close(fd); in sysfs_idlestate_write_file()
179 close(fd); in sysfs_idlestate_write_file()
/tools/leds/
Duledmon.c46 close(fd); in main()
54 close(fd); in main()
61 close(fd); in main()
/tools/testing/selftests/nsfs/
Downer.c44 close(pfd[0]); in main()
45 close(pfd[1]); in main()
50 close(pfd[1]); in main()
53 close(pfd[0]); in main()
/tools/testing/selftests/pidfd/
Dpidfd_test.c68 close(pidfd); in test_pidfd_send_signal_simple_success()
110 close(pidfd); in test_pidfd_send_signal_exited_fail()
200 close(pidfd); in test_pidfd_send_signal_recycled_pid_fail()
222 close(pipe_fds[1]); in test_pidfd_send_signal_recycled_pid_fail()
224 close(pipe_fds[0]); in test_pidfd_send_signal_recycled_pid_fail()
233 close(pipe_fds[0]); in test_pidfd_send_signal_recycled_pid_fail()
235 close(pipe_fds[1]); in test_pidfd_send_signal_recycled_pid_fail()
337 close(pidfd); in test_pidfd_send_signal_syscall_support()
383 close(epoll_fd); in poll_pidfd()
434 close(pidfd); in test_pidfd_poll_exec()
[all …]
/tools/testing/selftests/memfd/
Dmemfd_test.c81 close(r); in mfd_fail_new()
452 close(fd2); in mfd_assert_shrink()
630 close(fd); in test_create()
641 close(fd); in test_create()
645 close(fd); in test_create()
649 close(fd); in test_create()
690 close(fd); in test_basic()
701 close(fd); in test_basic()
727 close(fd); in test_seal_write()
764 close(fd2); in test_seal_future_write()
[all …]
/tools/bpf/bpftool/
Dcgroup.c82 close(prog_fd); in show_bpf_prog()
103 close(prog_fd); in show_bpf_prog()
215 close(cgroup_fd); in do_show()
249 close(cgroup_fd); in do_show_tree_fn()
259 close(cgroup_fd); in do_show_tree_fn()
287 close(cgroup_fd); in do_show_tree_fn()
427 close(prog_fd); in do_attach()
429 close(cgroup_fd); in do_attach()
474 close(prog_fd); in do_detach()
476 close(cgroup_fd); in do_detach()
/tools/perf/tests/
Dwp.c80 close(fd); in wp_ro_test()
99 close(fd); in wp_wo_test()
119 close(fd); in wp_rw_test()
143 close(fd); in wp_modify_test()
154 close(fd); in wp_modify_test()
164 close(fd); in wp_modify_test()
/tools/usb/usbip/libsrc/
Dsysfs_utils.c25 close(fd); in write_sysfs_attribute()
29 close(fd); in write_sysfs_attribute()
Dusbip_host_common.h26 void (*close)(struct usbip_host_driver *hdriver); member
64 if (!hdriver->ops.close) in usbip_driver_close()
66 hdriver->ops.close(hdriver); in usbip_driver_close()

12345678910>>...12