Lines Matching refs:cg_link
670 struct bpf_cgroup_link *cg_link; in cgroup_bpf_replace() local
673 cg_link = container_of(link, struct bpf_cgroup_link, link); in cgroup_bpf_replace()
677 if (!cg_link->cgroup) { in cgroup_bpf_replace()
685 ret = __cgroup_bpf_replace(cg_link->cgroup, cg_link, new_prog); in cgroup_bpf_replace()
972 struct bpf_cgroup_link *cg_link = in bpf_cgroup_link_release() local
979 if (!cg_link->cgroup) in bpf_cgroup_link_release()
985 if (!cg_link->cgroup) { in bpf_cgroup_link_release()
990 WARN_ON(__cgroup_bpf_detach(cg_link->cgroup, NULL, cg_link, in bpf_cgroup_link_release()
991 cg_link->type)); in bpf_cgroup_link_release()
993 cg = cg_link->cgroup; in bpf_cgroup_link_release()
994 cg_link->cgroup = NULL; in bpf_cgroup_link_release()
1003 struct bpf_cgroup_link *cg_link = in bpf_cgroup_link_dealloc() local
1006 kfree(cg_link); in bpf_cgroup_link_dealloc()
1019 struct bpf_cgroup_link *cg_link = in bpf_cgroup_link_show_fdinfo() local
1024 if (cg_link->cgroup) in bpf_cgroup_link_show_fdinfo()
1025 cg_id = cgroup_id(cg_link->cgroup); in bpf_cgroup_link_show_fdinfo()
1032 cg_link->type); in bpf_cgroup_link_show_fdinfo()
1038 struct bpf_cgroup_link *cg_link = in bpf_cgroup_link_fill_link_info() local
1043 if (cg_link->cgroup) in bpf_cgroup_link_fill_link_info()
1044 cg_id = cgroup_id(cg_link->cgroup); in bpf_cgroup_link_fill_link_info()
1048 info->cgroup.attach_type = cg_link->type; in bpf_cgroup_link_fill_link_info()