Searched refs:bpf_cgroup_ancestor (Results 1 – 4 of 4) sorted by relevance
/Linux-v6.6/tools/testing/selftests/bpf/progs/ |
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()
|
D | cgrp_kfunc_common.h | 25 struct cgroup *bpf_cgroup_ancestor(struct cgroup *cgrp, int level) __ksym;
|
/Linux-v6.6/Documentation/bpf/ |
D | kfuncs.rst | 614 bpf_cgroup_ancestor() and bpf_cgroup_from_id(), allowing callers to access 619 :identifiers: bpf_cgroup_ancestor 626 the verifier. bpf_cgroup_ancestor() can be used as follows: 632 * ancestor can be accessed using bpf_cgroup_ancestor(). 640 parent = bpf_cgroup_ancestor(cgrp, cgrp->level - 1);
|
/Linux-v6.6/kernel/bpf/ |
D | helpers.c | 2157 __bpf_kfunc struct cgroup *bpf_cgroup_ancestor(struct cgroup *cgrp, int level) in bpf_cgroup_ancestor() function 2460 BTF_ID_FLAGS(func, bpf_cgroup_ancestor, KF_ACQUIRE | KF_RCU | KF_RET_NULL)
|