]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
libbpf: introduce bpf_map_lookup_elem_flags()
authorAlexei Starovoitov <ast@kernel.org>
Thu, 31 Jan 2019 23:40:11 +0000 (15:40 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 1 Feb 2019 19:55:39 +0000 (20:55 +0100)
commitdf5d22facd78e475da2e0d506f239e32cdffaf99
tree9813b34f038fee9301b79f74683496f9025248a5
parente44ac9a22b19eec92d10c7b7c69ad6f1995b4dcf
libbpf: introduce bpf_map_lookup_elem_flags()

Introduce
int bpf_map_lookup_elem_flags(int fd, const void *key, void *value, __u64 flags)
helper to lookup array/hash/cgroup_local_storage elements with BPF_F_LOCK flag.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/lib/bpf/bpf.c
tools/lib/bpf/bpf.h
tools/lib/bpf/libbpf.map