Lines Matching refs:cgroup

47 	__bpf_md_ptr(struct cgroup *, cgroup);
130 if (css && cgroup_is_dead(css->cgroup)) in __cgroup_iter_seq_show()
134 ctx.cgroup = css ? css->cgroup : NULL; in __cgroup_iter_seq_show()
160 BTF_ID_LIST_SINGLE(bpf_cgroup_btf_id, struct, cgroup) in BTF_ID_LIST_SINGLE() argument
165 struct cgroup *cgrp = aux->cgroup.start; in BTF_ID_LIST_SINGLE()
170 p->order = aux->cgroup.order; in BTF_ID_LIST_SINGLE()
184 int fd = linfo->cgroup.cgroup_fd; in bpf_iter_attach_cgroup()
185 u64 id = linfo->cgroup.cgroup_id; in bpf_iter_attach_cgroup()
186 int order = linfo->cgroup.order; in bpf_iter_attach_cgroup()
187 struct cgroup *cgrp; in bpf_iter_attach_cgroup()
208 aux->cgroup.start = cgrp; in bpf_iter_attach_cgroup()
209 aux->cgroup.order = order; in bpf_iter_attach_cgroup()
215 cgroup_put(aux->cgroup.start); in bpf_iter_detach_cgroup()
234 cgroup_path_ns(aux->cgroup.start, buf, PATH_MAX, in bpf_iter_cgroup_show_fdinfo()
240 if (aux->cgroup.order == BPF_CGROUP_ITER_DESCENDANTS_PRE) in bpf_iter_cgroup_show_fdinfo()
242 else if (aux->cgroup.order == BPF_CGROUP_ITER_DESCENDANTS_POST) in bpf_iter_cgroup_show_fdinfo()
244 else if (aux->cgroup.order == BPF_CGROUP_ITER_ANCESTORS_UP) in bpf_iter_cgroup_show_fdinfo()
253 info->iter.cgroup.order = aux->cgroup.order; in bpf_iter_cgroup_fill_link_info()
254 info->iter.cgroup.cgroup_id = cgroup_id(aux->cgroup.start); in bpf_iter_cgroup_fill_link_info()
258 DEFINE_BPF_ITER_FUNC(cgroup, struct bpf_iter_meta *meta,
259 struct cgroup *cgroup)
270 { offsetof(struct bpf_iter__cgroup, cgroup),