Home
last modified time | relevance | path

Searched refs:link_fd (Results 1 – 25 of 50) sorted by relevance

12

/dports/multimedia/v4l_compat/linux-5.13-rc2/tools/testing/selftests/bpf/prog_tests/
H A Dfexit_stress.c12 int link_fd[CNT] = {}; in test_fexit_stress() local
54 link_fd[i] = bpf_raw_tracepoint_open(NULL, fexit_fd[i]); in test_fexit_stress()
55 if (CHECK(link_fd[i] < 0, "fexit attach failed", in test_fexit_stress()
56 "prog %d failed: %d err %d\n", i, link_fd[i], errno)) in test_fexit_stress()
71 if (link_fd[i]) in test_fexit_stress()
72 close(link_fd[i]); in test_fexit_stress()
H A Dbpf_obj_id.c302 int link_fd, cmp_res; in test_bpf_obj_id() local
307 link_fd = bpf_link_get_fd_by_id(next_id); in test_bpf_obj_id()
308 if (link_fd < 0 && errno == ENOENT) in test_bpf_obj_id()
311 if (CHECK(link_fd < 0, "get-link-fd(next_id)", in test_bpf_obj_id()
313 link_fd, next_id, errno)) in test_bpf_obj_id()
325 err = bpf_obj_get_info_by_fd(link_fd, &link_info, &info_len); in test_bpf_obj_id()
334 close(link_fd); in test_bpf_obj_id()
/dports/multimedia/libv4l/linux-5.13-rc2/tools/testing/selftests/bpf/prog_tests/
H A Dfexit_stress.c12 int link_fd[CNT] = {}; in test_fexit_stress() local
54 link_fd[i] = bpf_raw_tracepoint_open(NULL, fexit_fd[i]); in test_fexit_stress()
55 if (CHECK(link_fd[i] < 0, "fexit attach failed", in test_fexit_stress()
56 "prog %d failed: %d err %d\n", i, link_fd[i], errno)) in test_fexit_stress()
71 if (link_fd[i]) in test_fexit_stress()
72 close(link_fd[i]); in test_fexit_stress()
H A Dbpf_obj_id.c302 int link_fd, cmp_res; in test_bpf_obj_id() local
307 link_fd = bpf_link_get_fd_by_id(next_id); in test_bpf_obj_id()
308 if (link_fd < 0 && errno == ENOENT) in test_bpf_obj_id()
311 if (CHECK(link_fd < 0, "get-link-fd(next_id)", in test_bpf_obj_id()
313 link_fd, next_id, errno)) in test_bpf_obj_id()
325 err = bpf_obj_get_info_by_fd(link_fd, &link_info, &info_len); in test_bpf_obj_id()
334 close(link_fd); in test_bpf_obj_id()
/dports/multimedia/v4l-utils/linux-5.13-rc2/tools/testing/selftests/bpf/prog_tests/
H A Dfexit_stress.c12 int link_fd[CNT] = {}; in test_fexit_stress() local
54 link_fd[i] = bpf_raw_tracepoint_open(NULL, fexit_fd[i]); in test_fexit_stress()
55 if (CHECK(link_fd[i] < 0, "fexit attach failed", in test_fexit_stress()
56 "prog %d failed: %d err %d\n", i, link_fd[i], errno)) in test_fexit_stress()
71 if (link_fd[i]) in test_fexit_stress()
72 close(link_fd[i]); in test_fexit_stress()
H A Dbpf_obj_id.c302 int link_fd, cmp_res; in test_bpf_obj_id() local
307 link_fd = bpf_link_get_fd_by_id(next_id); in test_bpf_obj_id()
308 if (link_fd < 0 && errno == ENOENT) in test_bpf_obj_id()
311 if (CHECK(link_fd < 0, "get-link-fd(next_id)", in test_bpf_obj_id()
313 link_fd, next_id, errno)) in test_bpf_obj_id()
325 err = bpf_obj_get_info_by_fd(link_fd, &link_info, &info_len); in test_bpf_obj_id()
334 close(link_fd); in test_bpf_obj_id()
/dports/sysutils/vector/lucet-d4fc14a03bdb99ac83173d27fddf1aca48412a86/wasmtime/crates/test-programs/wasi-tests/src/bin/
H A Dpath_link.rs65 unsafe fn check_rights(orig_fd: wasi::Fd, link_fd: wasi::Fd) { in check_rights()
68 let link_filestat = wasi::fd_filestat_get(link_fd).expect("reading filestat of the link"); in check_rights()
73 let link_fdstat = wasi::fd_fdstat_get(link_fd).expect("reading fdstat of the link"); in check_rights()
86 let link_fd = open_link(dir_fd, "link"); in test_path_link() localVariable
87 check_rights(file_fd, link_fd); in test_path_link()
88 wasi::fd_close(link_fd).expect("Closing link_fd"); // needed for Windows in test_path_link()
95 let link_fd = open_link(subdir_fd, "link"); in test_path_link() localVariable
96 check_rights(file_fd, link_fd); in test_path_link()
99 wasi::fd_close(link_fd).expect("Closing link_fd"); // needed for Windows in test_path_link()
196 let link_fd = open_link(dir_fd, "link"); in test_path_link() localVariable
[all …]
/dports/multimedia/v4l_compat/linux-5.13-rc2/tools/lib/bpf/
H A Dxsk.c76 int link_fd; member
516 int link_fd; in xsk_create_bpf_link() local
536 if (link_fd < 0) { in xsk_create_bpf_link()
538 return link_fd; in xsk_create_bpf_link()
541 ctx->link_fd = link_fd; in xsk_create_bpf_link()
714 *link_fd = fd; in xsk_link_lookup()
744 if (link_fd >= 0) in xsk_probe_bpf_link()
760 if (link_fd >= 0) { in xsk_probe_bpf_link()
762 close(link_fd); in xsk_probe_bpf_link()
828 close(ctx->link_fd); in xsk_init_xdp_res()
[all …]
H A Dbpf.h185 LIBBPF_API int bpf_link_detach(int link_fd);
194 LIBBPF_API int bpf_link_update(int link_fd, int new_prog_fd,
197 LIBBPF_API int bpf_iter_create(int link_fd);
H A Dbpf.c658 int bpf_link_detach(int link_fd) in bpf_link_detach() argument
663 attr.link_detach.link_fd = link_fd; in bpf_link_detach()
668 int bpf_link_update(int link_fd, int new_prog_fd, in bpf_link_update() argument
677 attr.link_update.link_fd = link_fd; in bpf_link_update()
685 int bpf_iter_create(int link_fd) in bpf_iter_create() argument
690 attr.iter_create.link_fd = link_fd; in bpf_iter_create()
/dports/multimedia/libv4l/linux-5.13-rc2/tools/lib/bpf/
H A Dxsk.c76 int link_fd; member
516 int link_fd; in xsk_create_bpf_link() local
536 if (link_fd < 0) { in xsk_create_bpf_link()
538 return link_fd; in xsk_create_bpf_link()
541 ctx->link_fd = link_fd; in xsk_create_bpf_link()
714 *link_fd = fd; in xsk_link_lookup()
744 if (link_fd >= 0) in xsk_probe_bpf_link()
760 if (link_fd >= 0) { in xsk_probe_bpf_link()
762 close(link_fd); in xsk_probe_bpf_link()
828 close(ctx->link_fd); in xsk_init_xdp_res()
[all …]
H A Dbpf.h185 LIBBPF_API int bpf_link_detach(int link_fd);
194 LIBBPF_API int bpf_link_update(int link_fd, int new_prog_fd,
197 LIBBPF_API int bpf_iter_create(int link_fd);
H A Dbpf.c658 int bpf_link_detach(int link_fd) in bpf_link_detach() argument
663 attr.link_detach.link_fd = link_fd; in bpf_link_detach()
668 int bpf_link_update(int link_fd, int new_prog_fd, in bpf_link_update() argument
677 attr.link_update.link_fd = link_fd; in bpf_link_update()
685 int bpf_iter_create(int link_fd) in bpf_iter_create() argument
690 attr.iter_create.link_fd = link_fd; in bpf_iter_create()
/dports/multimedia/v4l-utils/linux-5.13-rc2/tools/lib/bpf/
H A Dxsk.c76 int link_fd; member
516 int link_fd; in xsk_create_bpf_link() local
536 if (link_fd < 0) { in xsk_create_bpf_link()
538 return link_fd; in xsk_create_bpf_link()
541 ctx->link_fd = link_fd; in xsk_create_bpf_link()
714 *link_fd = fd; in xsk_link_lookup()
744 if (link_fd >= 0) in xsk_probe_bpf_link()
760 if (link_fd >= 0) { in xsk_probe_bpf_link()
762 close(link_fd); in xsk_probe_bpf_link()
828 close(ctx->link_fd); in xsk_init_xdp_res()
[all …]
H A Dbpf.h185 LIBBPF_API int bpf_link_detach(int link_fd);
194 LIBBPF_API int bpf_link_update(int link_fd, int new_prog_fd,
197 LIBBPF_API int bpf_iter_create(int link_fd);
H A Dbpf.c658 int bpf_link_detach(int link_fd) in bpf_link_detach() argument
663 attr.link_detach.link_fd = link_fd; in bpf_link_detach()
668 int bpf_link_update(int link_fd, int new_prog_fd, in bpf_link_update() argument
677 attr.link_update.link_fd = link_fd; in bpf_link_update()
685 int bpf_iter_create(int link_fd) in bpf_iter_create() argument
690 attr.iter_create.link_fd = link_fd; in bpf_iter_create()
/dports/devel/libgit2/libgit2-1.3.0/tests/repo/
H A Dopen.c178 int link_fd; in test_repo_open__from_git_new_workdir() local
208 cl_assert((link_fd = git_futils_creat_withpath(link.ptr, 0777, 0666)) >= 0); in test_repo_open__from_git_new_workdir()
209 cl_must_pass(p_write(link_fd, body.ptr, body.size)); in test_repo_open__from_git_new_workdir()
210 p_close(link_fd); in test_repo_open__from_git_new_workdir()
/dports/net/dhcpcd/dhcpcd-9.4.1/src/
H A Dif-bsd.c184 ctx->link_fd = xsocket(PF_ROUTE, SOCK_RAW | SOCK_CXNB, AF_UNSPEC); in if_opensockets_os()
185 if (ctx->link_fd == -1) in if_opensockets_os()
190 if (setsockopt(ctx->link_fd, SOL_SOCKET, SO_RERROR, &n,sizeof(n)) == -1) in if_opensockets_os()
198 if (setsockopt(ctx->link_fd, SOL_SOCKET, SO_USELOOPBACK, in if_opensockets_os()
203 if (setsockopt(ctx->link_fd, PF_ROUTE, RO_MSGFILTER, in if_opensockets_os()
211 if (setsockopt(ctx->link_fd, PF_ROUTE, ROUTE_MSGFILTER, in if_opensockets_os()
222 ps_rights_limit_fd_sockopt(ctx->link_fd); in if_opensockets_os()
824 if (write(ctx->link_fd, rtm, rtm->rtm_msglen) == -1) in if_route()
1582 return setsockopt(ctx->link_fd, PF_ROUTE, RO_MISSFILTER, in if_missfilter_apply()
1599 len = read(ctx->link_fd, &rtm, sizeof(rtm)); in if_handlelink()
H A Ddhcpcd.h158 int link_fd; member
H A Ddhcpcd.c1153 if (setsockopt(ctx->link_fd, SOL_SOCKET, in dhcpcd_setlinkrcvbuf()
1181 if (getsockopt(ctx->link_fd, SOL_SOCKET, in dhcpcd_linkoverflow()
1198 rlen = read(ctx->link_fd, buf, sizeof(buf)); in dhcpcd_linkoverflow()
1875 ctx.control_fd = ctx.control_unpriv_fd = ctx.link_fd = -1; in main()
2450 eloop_event_add(ctx.eloop, ctx.link_fd, dhcpcd_handlelink, &ctx); in main()
2602 if (ctx.link_fd != -1) { in main()
2603 eloop_event_delete(ctx.eloop, ctx.link_fd); in main()
2604 close(ctx.link_fd); in main()
/dports/emulators/py-unicorn/unicorn-1.0.2/bindings/python/
H A Dsample_network_auditing.py90 def link_fd(self, from_fd, to_fd): member in LogChain
243 fd_chains.link_fd(ecx, ebx)
/dports/emulators/unicorn/unicorn-1.0.2/bindings/python/
H A Dsample_network_auditing.py90 def link_fd(self, from_fd, to_fd): member in LogChain
243 fd_chains.link_fd(ecx, ebx)
/dports/multimedia/v4l_compat/linux-5.13-rc2/tools/perf/util/
H A Dbpf_counter.c439 int link_fd, diff_map_fd, err; in bperf_reload_leader_program() local
461 link_fd = bpf_link__fd(link); in bperf_reload_leader_program()
463 entry->link_id = bpf_link_get_id(link_fd); in bperf_reload_leader_program()
/dports/multimedia/libv4l/linux-5.13-rc2/tools/perf/util/
H A Dbpf_counter.c439 int link_fd, diff_map_fd, err; in bperf_reload_leader_program() local
461 link_fd = bpf_link__fd(link); in bperf_reload_leader_program()
463 entry->link_id = bpf_link_get_id(link_fd); in bperf_reload_leader_program()
/dports/multimedia/v4l-utils/linux-5.13-rc2/tools/perf/util/
H A Dbpf_counter.c439 int link_fd, diff_map_fd, err; in bperf_reload_leader_program() local
461 link_fd = bpf_link__fd(link); in bperf_reload_leader_program()
463 entry->link_id = bpf_link_get_id(link_fd); in bperf_reload_leader_program()

12