Searched refs:bpf_cgroup_ancestor (Results 1 – 7 of 7) sorted by relevance
| /linux-6.15/tools/testing/selftests/bpf/progs/ |
| H A D | cgrp_kfunc_success.c | 92 cg = bpf_cgroup_ancestor(kptr, 1); in BPF_PROG() 146 self = bpf_cgroup_ancestor(cgrp, cgrp->level); in BPF_PROG() 159 ancestor1 = bpf_cgroup_ancestor(cgrp, cgrp->level - 1); in BPF_PROG() 166 invalid = bpf_cgroup_ancestor(cgrp, 10000); in BPF_PROG() 173 invalid = bpf_cgroup_ancestor(cgrp, -1); in BPF_PROG() 193 parent = bpf_cgroup_ancestor(cgrp, cgrp->level - 1); in BPF_PROG()
|
| H A D | test_cgroup1_hierarchy.c | 14 struct cgroup *bpf_cgroup_ancestor(struct cgroup *cgrp, int level) __ksym; 40 ancestor = bpf_cgroup_ancestor(cgrp, target_ancestor_level); in bpf_link_create_verify()
|
| H A D | cgrp_kfunc_common.h | 25 struct cgroup *bpf_cgroup_ancestor(struct cgroup *cgrp, int level) __ksym;
|
| /linux-6.15/Documentation/bpf/ |
| H A D | kfuncs.rst | 636 bpf_cgroup_ancestor() and bpf_cgroup_from_id(), allowing callers to access 641 :identifiers: bpf_cgroup_ancestor 648 the verifier. bpf_cgroup_ancestor() can be used as follows: 654 * ancestor can be accessed using bpf_cgroup_ancestor(). 662 parent = bpf_cgroup_ancestor(cgrp, cgrp->level - 1);
|
| /linux-6.15/tools/sched_ext/include/scx/ |
| H A D | common.bpf.h | 321 struct cgroup *bpf_cgroup_ancestor(struct cgroup *cgrp, int level) __ksym;
|
| /linux-6.15/tools/sched_ext/ |
| H A D | scx_flatcg.bpf.c | 179 cgrp = bpf_cgroup_ancestor(cgrp, level); in find_ancestor_cgrp_ctx()
|
| /linux-6.15/kernel/bpf/ |
| H A D | helpers.c | 2434 __bpf_kfunc struct cgroup *bpf_cgroup_ancestor(struct cgroup *cgrp, int level) in bpf_cgroup_ancestor() function 3221 BTF_ID_FLAGS(func, bpf_cgroup_ancestor, KF_ACQUIRE | KF_RCU | KF_RET_NULL)
|