Searched refs:bpf_cgroup_ancestor (Results 1 – 4 of 4) sorted by relevance
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/ |
A D | cgrp_kfunc_success.c | 135 self = bpf_cgroup_ancestor(cgrp, cgrp->level); in BPF_PROG() 148 ancestor1 = bpf_cgroup_ancestor(cgrp, cgrp->level - 1); in BPF_PROG() 155 invalid = bpf_cgroup_ancestor(cgrp, 10000); in BPF_PROG() 162 invalid = bpf_cgroup_ancestor(cgrp, -1); in BPF_PROG()
|
A D | cgrp_kfunc_common.h | 26 struct cgroup *bpf_cgroup_ancestor(struct cgroup *cgrp, int level) __ksym;
|
/linux-6.3-rc2/Documentation/bpf/ |
A D | kfuncs.rst | 587 bpf_cgroup_ancestor(). This allows callers to access the ancestor of a cgroup, 591 :identifiers: bpf_cgroup_ancestor 595 the verifier. bpf_cgroup_ancestor() can be used as follows: 601 * ancestor can be accessed using bpf_cgroup_ancestor(). 609 parent = bpf_cgroup_ancestor(cgrp, cgrp->level - 1);
|
/linux-6.3-rc2/kernel/bpf/ |
A D | helpers.c | 2093 __bpf_kfunc struct cgroup *bpf_cgroup_ancestor(struct cgroup *cgrp, int level) in bpf_cgroup_ancestor() function 2169 BTF_ID_FLAGS(func, bpf_cgroup_ancestor, KF_ACQUIRE | KF_TRUSTED_ARGS | KF_RET_NULL)
|
Completed in 12 milliseconds