Home
last modified time | relevance | path

Searched refs:link_create (Results 1 – 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/tools/lib/bpf/
Dbpf.c602 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()
/kernel/linux/linux-5.10/kernel/bpf/
Dbpf_iter.c473 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()
Dnet_namespace.c485 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()
Dsyscall.c4042 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_len
4055 static int link_create(union bpf_attr *attr) in link_create() function
4064 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()
Dcgroup.c963 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()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/inc/
Dcore_types.h67 struct dc_link *link_create(const struct link_init_data *init_params);
/kernel/linux/linux-5.10/include/uapi/linux/
Dbpf.h673 } link_create; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dbpf.h432 } link_create; member
/kernel/linux/linux-5.10/tools/include/uapi/linux/
Dbpf.h673 } link_create; member
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/core/
Ddc_link.c1602 struct dc_link *link_create(const struct link_init_data *init_params) in link_create() function
Ddc.c185 link = link_create(&link_init_params); in create_links()
/kernel/linux/linux-5.10/net/core/
Ddev.c9392 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()