bpf: Document struct bpf_struct_ops fields
authorDavid Vernet <void@manifault.com>
Mon, 14 Aug 2023 18:59:08 +0000 (13:59 -0500)
committerMartin KaFai Lau <martin.lau@kernel.org>
Tue, 15 Aug 2023 05:23:39 +0000 (22:23 -0700)
commitbb48cf1679d294d4fd3bfaa88289ed9004cbb025
tree30ef212b336ed1259f26922f93cf56000262049f
parent8ba651ed7fa1641f7c4941b79f2e3dd4ddb58aec
bpf: Document struct bpf_struct_ops fields

Subsystems that want to implement a struct bpf_struct_ops structure to
enable struct_ops maps must currently reverse engineer how the structure
works. Given that this is meant to be a way for subsystem maintainers to
extend their subsystems using BPF, let's document it to make it a bit
easier on them.

Signed-off-by: David Vernet <void@manifault.com>
Link: https://lore.kernel.org/r/20230814185908.700553-3-void@manifault.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
include/linux/bpf.h