Lines Matching refs:aux
162 static int cgroup_iter_seq_init(void *priv, struct bpf_iter_aux_info *aux) in BTF_ID_LIST_SINGLE()
165 struct cgroup *cgrp = aux->cgroup.start; in BTF_ID_LIST_SINGLE()
176 p->order = aux->cgroup.order; in BTF_ID_LIST_SINGLE()
196 struct bpf_iter_aux_info *aux) in bpf_iter_attach_cgroup() argument
222 aux->cgroup.start = cgrp; in bpf_iter_attach_cgroup()
223 aux->cgroup.order = order; in bpf_iter_attach_cgroup()
227 static void bpf_iter_detach_cgroup(struct bpf_iter_aux_info *aux) in bpf_iter_detach_cgroup() argument
229 cgroup_put(aux->cgroup.start); in bpf_iter_detach_cgroup()
232 static void bpf_iter_cgroup_show_fdinfo(const struct bpf_iter_aux_info *aux, in bpf_iter_cgroup_show_fdinfo() argument
248 cgroup_path_ns(aux->cgroup.start, buf, PATH_MAX, in bpf_iter_cgroup_show_fdinfo()
254 if (aux->cgroup.order == BPF_CGROUP_ITER_DESCENDANTS_PRE) in bpf_iter_cgroup_show_fdinfo()
256 else if (aux->cgroup.order == BPF_CGROUP_ITER_DESCENDANTS_POST) in bpf_iter_cgroup_show_fdinfo()
258 else if (aux->cgroup.order == BPF_CGROUP_ITER_ANCESTORS_UP) in bpf_iter_cgroup_show_fdinfo()
264 static int bpf_iter_cgroup_fill_link_info(const struct bpf_iter_aux_info *aux, in bpf_iter_cgroup_fill_link_info() argument
267 info->iter.cgroup.order = aux->cgroup.order; in bpf_iter_cgroup_fill_link_info()
268 info->iter.cgroup.cgroup_id = cgroup_id(aux->cgroup.start); in bpf_iter_cgroup_fill_link_info()