Searched refs:link_create (Results 1 – 12 of 12) sorted by relevance
602 attr.link_create.prog_fd = prog_fd; in bpf_link_create()603 attr.link_create.target_fd = target_fd; in bpf_link_create()604 attr.link_create.attach_type = attach_type; in bpf_link_create()605 attr.link_create.flags = OPTS_GET(opts, flags, 0); in bpf_link_create()608 attr.link_create.iter_info = in bpf_link_create()610 attr.link_create.iter_info_len = iter_info_len; in bpf_link_create()612 attr.link_create.target_btf_id = target_btf_id; in bpf_link_create()
473 if (attr->link_create.target_fd || attr->link_create.flags) in bpf_iter_link_attach()478 ulinfo = u64_to_user_ptr(attr->link_create.iter_info); in bpf_iter_link_attach()479 linfo_len = attr->link_create.iter_info_len; in bpf_iter_link_attach()
485 if (attr->link_create.flags) in netns_bpf_link_create()488 type = attr->link_create.attach_type; in netns_bpf_link_create()493 net = get_net_ns_by_fd(attr->link_create.target_fd); in netns_bpf_link_create()
4042 if (attr->link_create.attach_type != prog->expected_attach_type) in tracing_bpf_link_attach()4049 attr->link_create.target_fd, in tracing_bpf_link_attach()4050 attr->link_create.target_btf_id); in tracing_bpf_link_attach()4054 #define BPF_LINK_CREATE_LAST_FIELD link_create.iter_info_len4055 static int link_create(union bpf_attr *attr) in link_create() function4064 prog = bpf_prog_get(attr->link_create.prog_fd); in link_create()4069 attr->link_create.attach_type); in link_create()4078 ptype = attach_type_to_prog_type(attr->link_create.attach_type); in link_create()4495 err = link_create(&attr); in SYSCALL_DEFINE3()
963 if (attr->link_create.flags) in cgroup_bpf_link_attach()966 cgrp = cgroup_get_from_fd(attr->link_create.target_fd); in cgroup_bpf_link_attach()978 link->type = attr->link_create.attach_type; in cgroup_bpf_link_attach()
67 struct dc_link *link_create(const struct link_init_data *init_params);
673 } link_create; member
432 } link_create; member
1602 struct dc_link *link_create(const struct link_init_data *init_params) in link_create() function
185 link = link_create(&link_init_params); in create_links()
9392 dev = dev_get_by_index(net, attr->link_create.target_ifindex); in bpf_xdp_link_attach()9406 link->flags = attr->link_create.flags; in bpf_xdp_link_attach()