diff options
author | David Vernet <void@manifault.com> | 2022-12-07 14:49:11 -0600 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2022-12-07 17:11:24 -0800 |
commit | 36aa10ffd6480b93e32611411be4a8fc49804aba (patch) | |
tree | 0aff864f87bd286b0da3d0424e6156f56b03719c /kernel/bpf | |
parent | 25c5e92d197bd721e706444c5910fd386c330456 (diff) | |
download | linux-stable-36aa10ffd6480b93e32611411be4a8fc49804aba.tar.gz linux-stable-36aa10ffd6480b93e32611411be4a8fc49804aba.tar.bz2 linux-stable-36aa10ffd6480b93e32611411be4a8fc49804aba.zip |
bpf/docs: Document struct cgroup * kfuncs
bpf_cgroup_acquire(), bpf_cgroup_release(), bpf_cgroup_kptr_get(), and
bpf_cgroup_ancestor(), are kfuncs that were recently added to
kernel/bpf/helpers.c. These are "core" kfuncs in that they're available
for use in any tracepoint or struct_ops BPF program. Though they have no
ABI stability guarantees, we should still document them. This patch adds
a struct cgroup * subsection to the Core kfuncs section which describes
each of these kfuncs.
Signed-off-by: David Vernet <void@manifault.com>
Link: https://lore.kernel.org/r/20221207204911.873646-3-void@manifault.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/bpf')
-rw-r--r-- | kernel/bpf/helpers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/bpf/helpers.c b/kernel/bpf/helpers.c index 1e4bf466b08f..6ed5875b97a3 100644 --- a/kernel/bpf/helpers.c +++ b/kernel/bpf/helpers.c @@ -1960,7 +1960,7 @@ struct cgroup *bpf_cgroup_kptr_get(struct cgroup **cgrpp) } /** - * bpf_cgroup_release - Release the reference acquired on a struct cgroup *. + * bpf_cgroup_release - Release the reference acquired on a cgroup. * If this kfunc is invoked in an RCU read region, the cgroup is guaranteed to * not be freed until the current grace period has ended, even if its refcount * drops to 0. |