diff options
author | 2020-05-09 10:59:09 -0700 | |
---|---|---|
committer | 2020-05-09 17:05:26 -0700 | |
commit | 6086d29def80edd78f9832ea6eafa74e3818f6a7 (patch) | |
tree | abaedb47ce4edee0744294fef6e1bfecb69856ab /include/linux | |
parent | bpf: Implement common macros/helpers for target iterators (diff) | |
download | wireguard-linux-6086d29def80edd78f9832ea6eafa74e3818f6a7.tar.xz wireguard-linux-6086d29def80edd78f9832ea6eafa74e3818f6a7.zip |
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
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/bpf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/bpf.h b/include/linux/bpf.h index ffe0b9b669bf..363ab0751967 100644 --- a/include/linux/bpf.h +++ b/include/linux/bpf.h @@ -1082,6 +1082,7 @@ int generic_map_update_batch(struct bpf_map *map, int generic_map_delete_batch(struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user *uattr); +struct bpf_map *bpf_map_get_curr_or_next(u32 *id); extern int sysctl_unprivileged_bpf_disabled; |