Lines Matching refs:target_fd
630 int bpf_prog_attach(int prog_fd, int target_fd, enum bpf_attach_type type, in bpf_prog_attach() argument
637 return bpf_prog_attach_opts(prog_fd, target_fd, type, &opts); in bpf_prog_attach()
660 attr.target_fd = target; in bpf_prog_attach_opts()
698 attr.target_fd = target; in bpf_prog_detach_opts()
715 int bpf_prog_detach(int target_fd, enum bpf_attach_type type) in bpf_prog_detach() argument
717 return bpf_prog_detach_opts(0, target_fd, type, NULL); in bpf_prog_detach()
720 int bpf_prog_detach2(int prog_fd, int target_fd, enum bpf_attach_type type) in bpf_prog_detach2() argument
722 return bpf_prog_detach_opts(prog_fd, target_fd, type, NULL); in bpf_prog_detach2()
725 int bpf_link_create(int prog_fd, int target_fd, in bpf_link_create() argument
750 attr.link_create.target_fd = target_fd; in bpf_link_create()
903 if (attr.link_create.target_fd || attr.link_create.target_btf_id) in bpf_link_create()
987 attr.query.target_fd = target; in bpf_prog_query_opts()
1005 int bpf_prog_query(int target_fd, enum bpf_attach_type type, __u32 query_flags, in bpf_prog_query() argument
1015 ret = bpf_prog_query_opts(target_fd, type, &opts); in bpf_prog_query()