Lines Matching refs:target_fd
629 int bpf_prog_attach(int prog_fd, int target_fd, enum bpf_attach_type type, in bpf_prog_attach() argument
636 return bpf_prog_attach_opts(prog_fd, target_fd, type, &opts); in bpf_prog_attach()
659 attr.target_fd = target; in bpf_prog_attach_opts()
697 attr.target_fd = target; in bpf_prog_detach_opts()
714 int bpf_prog_detach(int target_fd, enum bpf_attach_type type) in bpf_prog_detach() argument
716 return bpf_prog_detach_opts(0, target_fd, type, NULL); in bpf_prog_detach()
719 int bpf_prog_detach2(int prog_fd, int target_fd, enum bpf_attach_type type) in bpf_prog_detach2() argument
721 return bpf_prog_detach_opts(prog_fd, target_fd, type, NULL); in bpf_prog_detach2()
724 int bpf_link_create(int prog_fd, int target_fd, in bpf_link_create() argument
749 attr.link_create.target_fd = target_fd; in bpf_link_create()
857 if (attr.link_create.target_fd || attr.link_create.target_btf_id) in bpf_link_create()
941 attr.query.target_fd = target; in bpf_prog_query_opts()
959 int bpf_prog_query(int target_fd, enum bpf_attach_type type, __u32 query_flags, in bpf_prog_query() argument
969 ret = bpf_prog_query_opts(target_fd, type, &opts); in bpf_prog_query()