Lines Matching refs:progs

30 	for (type = 0; type < ARRAY_SIZE(cgrp->bpf.progs); type++) {  in cgroup_bpf_put()
31 struct list_head *progs = &cgrp->bpf.progs[type]; in cgroup_bpf_put() local
34 list_for_each_entry_safe(pl, tmp, progs, node) { in cgroup_bpf_put()
81 cnt = prog_list_length(&p->bpf.progs[type]); in hierarchy_allows_attach()
100 struct bpf_prog_array *progs; in compute_effective_progs() local
108 cnt += prog_list_length(&p->bpf.progs[type]); in compute_effective_progs()
112 progs = bpf_prog_array_alloc(cnt, GFP_KERNEL); in compute_effective_progs()
113 if (!progs) in compute_effective_progs()
123 list_for_each_entry(pl, &p->bpf.progs[type], node) { in compute_effective_progs()
127 progs->items[cnt].prog = pl->prog; in compute_effective_progs()
128 progs->items[cnt].cgroup_storage = pl->storage; in compute_effective_progs()
133 rcu_assign_pointer(*array, progs); in compute_effective_progs()
164 INIT_LIST_HEAD(&cgrp->bpf.progs[i]); in cgroup_bpf_inherit()
233 struct list_head *progs = &cgrp->bpf.progs[type]; in __cgroup_bpf_attach() local
247 if (!list_empty(progs) && cgrp->bpf.flags[type] != flags) in __cgroup_bpf_attach()
254 if (prog_list_length(progs) >= BPF_CGROUP_MAX_PROGS) in __cgroup_bpf_attach()
262 list_for_each_entry(pl, progs, node) { in __cgroup_bpf_attach()
279 list_add_tail(&pl->node, progs); in __cgroup_bpf_attach()
281 if (list_empty(progs)) { in __cgroup_bpf_attach()
288 list_add_tail(&pl->node, progs); in __cgroup_bpf_attach()
290 pl = list_first_entry(progs, typeof(*pl), node); in __cgroup_bpf_attach()
341 struct list_head *progs = &cgrp->bpf.progs[type]; in __cgroup_bpf_detach() local
354 if (list_empty(progs)) in __cgroup_bpf_detach()
361 list_for_each_entry(pl, progs, node) { in __cgroup_bpf_detach()
377 pl = list_first_entry(progs, typeof(*pl), node); in __cgroup_bpf_detach()
391 if (list_empty(progs)) in __cgroup_bpf_detach()
411 struct list_head *progs = &cgrp->bpf.progs[type]; in __cgroup_bpf_query() local
418 cnt = prog_list_length(progs); in __cgroup_bpf_query()
440 list_for_each_entry(pl, progs, node) { in __cgroup_bpf_query()