diff options
| author | Andrii Nakryiko <[email protected]> | 2021-09-16 01:58:36 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2021-09-17 16:05:41 +0000 |
| commit | 942025c9f37ee45e69eb5f39a2877afab66d9555 (patch) | |
| tree | 41c2d3963751330b621ff21f8e1014f3d058ba88 /tools/lib/bpf/bpf_helpers.h | |
| parent | libbpf: Schedule open_opts.attach_prog_fd deprecation since v0.7 (diff) | |
| download | kernel-942025c9f37ee45e69eb5f39a2877afab66d9555.tar.gz kernel-942025c9f37ee45e69eb5f39a2877afab66d9555.zip | |
libbpf: Constify all high-level program attach APIs
Attach APIs shouldn't need to modify bpf_program/bpf_map structs, so
change all struct bpf_program and struct bpf_map pointers to const
pointers. This is completely backwards compatible with no functional
change.
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/bpf_helpers.h')
0 files changed, 0 insertions, 0 deletions
