summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorAnton Protopopov <a.s.protopopov@gmail.com>2025-10-19 20:21:31 +0000
committerAlexei Starovoitov <ast@kernel.org>2025-10-21 11:17:25 -0700
commit44481e4925327d833f2e37c8741406e4cabfe054 (patch)
treedaf7aabecabf521f886d1e6566dc5257bbde078d /tools/testing/selftests/bpf/prog_tests/autoload.c
parentf7d72d0b3f438b881dba16c7c00493f16e41a821 (diff)
bpf: generalize and export map_get_next_key for arrays
The kernel/bpf/array.c file defines the array_map_get_next_key() function which finds the next key for array maps. It actually doesn't use any map fields besides the generic max_entries field. Generalize it, and export as bpf_array_get_next_key() such that it can be re-used by other array-like maps. Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com> Acked-by: Eduard Zingerman <eddyz87@gmail.com> Link: https://lore.kernel.org/r/20251019202145.3944697-4-a.s.protopopov@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions