Lines Matching refs:cg
767 struct cgroup *cg; in replace_effective_prog() local
777 for (pos = 0, cg = desc; cg; cg = cgroup_parent(cg)) { in replace_effective_prog()
778 if (pos && !(cg->bpf.flags[atype] & BPF_F_ALLOW_MULTI)) in replace_effective_prog()
781 head = &cg->bpf.progs[atype]; in replace_effective_prog()
791 BUG_ON(!cg); in replace_effective_prog()
918 struct cgroup *cg; in purge_effective_progs() local
929 for (pos = 0, cg = desc; cg; cg = cgroup_parent(cg)) { in purge_effective_progs()
930 if (pos && !(cg->bpf.flags[atype] & BPF_F_ALLOW_MULTI)) in purge_effective_progs()
933 head = &cg->bpf.progs[atype]; in purge_effective_progs()
1202 struct cgroup *cg; in bpf_cgroup_link_release() local
1223 cg = cg_link->cgroup; in bpf_cgroup_link_release()
1228 cgroup_put(cg); in bpf_cgroup_link_release()