Lines Matching refs:cgroup

25 void cgroup_bpf_offline(struct cgroup *cgrp)  in cgroup_bpf_offline()
43 struct cgroup *cgrp) in bpf_cgroup_storages_alloc()
83 struct cgroup *cgrp, in bpf_cgroup_storages_link()
99 cgroup_put(link->cgroup); in bpf_cgroup_link_auto_detach()
100 link->cgroup = NULL; in bpf_cgroup_link_auto_detach()
110 struct cgroup *p, *cgrp = container_of(work, struct cgroup, in cgroup_bpf_release()
160 struct cgroup *cgrp = container_of(ref, struct cgroup, bpf.refcnt); in cgroup_bpf_release_fn()
198 static bool hierarchy_allows_attach(struct cgroup *cgrp, in hierarchy_allows_attach()
201 struct cgroup *p; in hierarchy_allows_attach()
227 static int compute_effective_progs(struct cgroup *cgrp, in compute_effective_progs()
234 struct cgroup *p = cgrp; in compute_effective_progs()
271 static void activate_effective_progs(struct cgroup *cgrp, in activate_effective_progs()
287 int cgroup_bpf_inherit(struct cgroup *cgrp) in cgroup_bpf_inherit()
294 struct cgroup *p; in cgroup_bpf_inherit()
330 static int update_effective_progs(struct cgroup *cgrp, in update_effective_progs()
338 struct cgroup *desc = container_of(css, struct cgroup, self); in update_effective_progs()
350 struct cgroup *desc = container_of(css, struct cgroup, self); in update_effective_progs()
371 struct cgroup *desc = container_of(css, struct cgroup, self); in update_effective_progs()
433 int __cgroup_bpf_attach(struct cgroup *cgrp, in __cgroup_bpf_attach()
522 static void replace_effective_prog(struct cgroup *cgrp, in replace_effective_prog()
531 struct cgroup *cg; in replace_effective_prog()
535 struct cgroup *desc = container_of(css, struct cgroup, self); in replace_effective_prog()
573 static int __cgroup_bpf_replace(struct cgroup *cgrp, in __cgroup_bpf_replace()
610 if (!cg_link->cgroup) { in cgroup_bpf_replace()
618 ret = __cgroup_bpf_replace(cg_link->cgroup, cg_link, new_prog); in cgroup_bpf_replace()
667 int __cgroup_bpf_detach(struct cgroup *cgrp, struct bpf_prog *prog, in __cgroup_bpf_detach()
712 int __cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr, in __cgroup_bpf_query()
766 struct cgroup *cgrp; in cgroup_bpf_prog_attach()
794 struct cgroup *cgrp; in cgroup_bpf_prog_detach()
817 struct cgroup *cg; in bpf_cgroup_link_release()
822 if (!cg_link->cgroup) in bpf_cgroup_link_release()
828 if (!cg_link->cgroup) { in bpf_cgroup_link_release()
833 WARN_ON(__cgroup_bpf_detach(cg_link->cgroup, NULL, cg_link, in bpf_cgroup_link_release()
836 cg = cg_link->cgroup; in bpf_cgroup_link_release()
837 cg_link->cgroup = NULL; in bpf_cgroup_link_release()
867 if (cg_link->cgroup) in bpf_cgroup_link_show_fdinfo()
868 cg_id = cgroup_id(cg_link->cgroup); in bpf_cgroup_link_show_fdinfo()
886 if (cg_link->cgroup) in bpf_cgroup_link_fill_link_info()
887 cg_id = cgroup_id(cg_link->cgroup); in bpf_cgroup_link_fill_link_info()
890 info->cgroup.cgroup_id = cg_id; in bpf_cgroup_link_fill_link_info()
891 info->cgroup.attach_type = cg_link->type; in bpf_cgroup_link_fill_link_info()
908 struct cgroup *cgrp; in cgroup_bpf_link_attach()
925 link->cgroup = cgrp; in cgroup_bpf_link_attach()
951 struct cgroup *cgrp; in cgroup_bpf_prog_query()
994 struct cgroup *cgrp; in __cgroup_bpf_run_filter_skb()
1043 struct cgroup *cgrp = sock_cgroup_ptr(&sk->sk_cgrp_data); in __cgroup_bpf_run_filter_sk()
1075 struct cgroup *cgrp; in __cgroup_bpf_run_filter_sock_addr()
1116 struct cgroup *cgrp = sock_cgroup_ptr(&sk->sk_cgrp_data); in __cgroup_bpf_run_filter_sock_ops()
1128 struct cgroup *cgrp; in __cgroup_bpf_check_dev_permission()
1243 struct cgroup *cgrp; in __cgroup_bpf_run_filter_sysctl()
1287 static bool __cgroup_bpf_prog_array_is_empty(struct cgroup *cgrp, in __cgroup_bpf_prog_array_is_empty()
1331 struct cgroup *cgrp = sock_cgroup_ptr(&sk->sk_cgrp_data); in __cgroup_bpf_run_filter_setsockopt()
1408 struct cgroup *cgrp = sock_cgroup_ptr(&sk->sk_cgrp_data); in __cgroup_bpf_run_filter_getsockopt()