Lines Matching refs:cg_link

829 	struct bpf_cgroup_link *cg_link;  in cgroup_bpf_replace()  local
832 cg_link = container_of(link, struct bpf_cgroup_link, link); in cgroup_bpf_replace()
836 if (!cg_link->cgroup) { in cgroup_bpf_replace()
844 ret = __cgroup_bpf_replace(cg_link->cgroup, cg_link, new_prog); in cgroup_bpf_replace()
1182 struct bpf_cgroup_link *cg_link = in bpf_cgroup_link_release() local
1189 if (!cg_link->cgroup) in bpf_cgroup_link_release()
1195 if (!cg_link->cgroup) { in bpf_cgroup_link_release()
1200 WARN_ON(__cgroup_bpf_detach(cg_link->cgroup, NULL, cg_link, in bpf_cgroup_link_release()
1201 cg_link->type)); in bpf_cgroup_link_release()
1202 if (cg_link->type == BPF_LSM_CGROUP) in bpf_cgroup_link_release()
1203 bpf_trampoline_unlink_cgroup_shim(cg_link->link.prog); in bpf_cgroup_link_release()
1205 cg = cg_link->cgroup; in bpf_cgroup_link_release()
1206 cg_link->cgroup = NULL; in bpf_cgroup_link_release()
1215 struct bpf_cgroup_link *cg_link = in bpf_cgroup_link_dealloc() local
1218 kfree(cg_link); in bpf_cgroup_link_dealloc()
1231 struct bpf_cgroup_link *cg_link = in bpf_cgroup_link_show_fdinfo() local
1236 if (cg_link->cgroup) in bpf_cgroup_link_show_fdinfo()
1237 cg_id = cgroup_id(cg_link->cgroup); in bpf_cgroup_link_show_fdinfo()
1244 cg_link->type); in bpf_cgroup_link_show_fdinfo()
1250 struct bpf_cgroup_link *cg_link = in bpf_cgroup_link_fill_link_info() local
1255 if (cg_link->cgroup) in bpf_cgroup_link_fill_link_info()
1256 cg_id = cgroup_id(cg_link->cgroup); in bpf_cgroup_link_fill_link_info()
1260 info->cgroup.attach_type = cg_link->type; in bpf_cgroup_link_fill_link_info()