Home
last modified time | relevance | path

Searched refs:relative_fd (Results 1 – 10 of 10) sorted by relevance

/linux-6.6.21/tools/lib/bpf/
Dbpf.c637 int ret, relative_fd; in bpf_prog_attach_opts() local
644 relative_fd = OPTS_GET(opts, relative_fd, 0); in bpf_prog_attach_opts()
648 if (relative_fd && relative_id) in bpf_prog_attach_opts()
663 attr.relative_fd = relative_fd; in bpf_prog_attach_opts()
675 int ret, relative_fd; in bpf_prog_detach_opts() local
682 relative_fd = OPTS_GET(opts, relative_fd, 0); in bpf_prog_detach_opts()
686 if (relative_fd && relative_id) in bpf_prog_detach_opts()
700 attr.relative_fd = relative_fd; in bpf_prog_detach_opts()
723 int fd, err, relative_fd; in bpf_link_create() local
799 relative_fd = OPTS_GET(opts, tcx.relative_fd, 0); in bpf_link_create()
[all …]
Dbpf.h328 int relative_fd; member
338 int relative_fd; member
414 __u32 relative_fd; member
Dlibbpf.h792 __u32 relative_fd; member
Dlibbpf.c11964 int relative_fd; in bpf_program__attach_tcx() local
11970 relative_fd = OPTS_GET(opts, relative_fd, 0); in bpf_program__attach_tcx()
11978 if (relative_fd && relative_id) { in bpf_program__attach_tcx()
11985 link_create_opts.tcx.relative_fd = relative_fd; in bpf_program__attach_tcx()
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dtc_opts.c178 .relative_fd = fd2, in test_tc_opts_before_target()
330 .relative_fd = fd1, in test_tc_opts_after_target()
782 .relative_fd = fd1, in test_tc_opts_replace_target()
826 .relative_fd = fd1, in test_tc_opts_replace_target()
837 .relative_fd = fd1, in test_tc_opts_replace_target()
920 .relative_fd = fd2, in test_tc_opts_invalid_target()
929 .relative_fd = fd2, in test_tc_opts_invalid_target()
947 .relative_fd = fd1, in test_tc_opts_invalid_target()
956 .relative_fd = fd1, in test_tc_opts_invalid_target()
979 .relative_fd = fd1, in test_tc_opts_invalid_target()
[all …]
Dtc_links.c202 .relative_fd = bpf_program__fd(skel->progs.tc2), in test_tc_links_before_target()
356 .relative_fd = bpf_program__fd(skel->progs.tc1), in test_tc_links_after_target()
369 .relative_fd = bpf_link__fd(skel->links.tc2), in test_tc_links_after_target()
718 .relative_fd = bpf_program__fd(skel->progs.tc2), in test_tc_links_replace_target()
732 .relative_fd = bpf_link__fd(skel->links.tc2), in test_tc_links_replace_target()
930 .relative_fd = bpf_program__fd(skel->progs.tc2), in test_tc_links_invalid_target()
954 .relative_fd = bpf_program__fd(skel->progs.tc2), in test_tc_links_invalid_target()
967 .relative_fd = bpf_program__fd(skel->progs.tc2), in test_tc_links_invalid_target()
980 .relative_fd = bpf_program__fd(skel->progs.tc1), in test_tc_links_invalid_target()
1019 .relative_fd = bpf_program__fd(skel->progs.tc1), in test_tc_links_invalid_target()
[all …]
/linux-6.6.21/kernel/bpf/
Dtcx.c40 attr->attach_flags, attr->relative_fd, in tcx_prog_attach()
79 attr->relative_fd, attr->expected_revision); in tcx_prog_detach()
335 attr->link_create.tcx.relative_fd, in tcx_link_attach()
Dsyscall.c3854 if (attr->relative_fd || in bpf_prog_attach()
3928 attr->relative_fd || in bpf_prog_detach()
/linux-6.6.21/tools/include/uapi/linux/
Dbpf.h1480 __u32 relative_fd; member
1633 __u32 relative_fd; member
/linux-6.6.21/include/uapi/linux/
Dbpf.h1480 __u32 relative_fd; member
1633 __u32 relative_fd; member