diff options
| author | David Vernet <[email protected]> | 2023-01-25 16:47:34 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2023-01-25 18:25:57 +0000 |
| commit | 51a52a29ebaa8395de090fa415c6e1b2899a50f1 (patch) | |
| tree | 03797261214da5c39912a7a5eae62fefcad1ea62 /net/bpf/bpf_dummy_struct_ops.c | |
| parent | libbpf: Support sleepable struct_ops.s section (diff) | |
| download | kernel-51a52a29ebaa8395de090fa415c6e1b2899a50f1.tar.gz kernel-51a52a29ebaa8395de090fa415c6e1b2899a50f1.zip | |
bpf: Pass const struct bpf_prog * to .check_member
The .check_member field of struct bpf_struct_ops is currently passed the
member's btf_type via const struct btf_type *t, and a const struct
btf_member *member. This allows the struct_ops implementation to check
whether e.g. an ops is supported, but it would be useful to also enforce
that the struct_ops prog being loaded for that member has other
qualities, like being sleepable (or not). This patch therefore updates
the .check_member() callback to also take a const struct bpf_prog *prog
argument.
Signed-off-by: David Vernet <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'net/bpf/bpf_dummy_struct_ops.c')
0 files changed, 0 insertions, 0 deletions
