]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Add bpf_map iterator
authorYonghong Song <yhs@fb.com>
Sat, 9 May 2020 17:59:09 +0000 (10:59 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 10 May 2020 00:05:26 +0000 (17:05 -0700)
commit9000110f3273584acf2d456672eaa9a440ff58ba
treeabaedb47ce4edee0744294fef6e1bfecb69856ab
parentdddd3836f33efbb92ecfd5c74f24925f20851731
bpf: Add bpf_map iterator

Implement seq_file operations to traverse all bpf_maps.

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200509175909.2476096-1-yhs@fb.com
include/linux/bpf.h
kernel/bpf/Makefile
kernel/bpf/map_iter.c [new file with mode: 0644]
kernel/bpf/syscall.c