]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Extend libbpf with bpf_map_lookup_and_delete_elem_flags
authorDenis Salopek <denis.salopek@sartura.hr>
Tue, 11 May 2021 21:00:05 +0000 (23:00 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 24 May 2021 20:30:51 +0000 (13:30 -0700)
commit725247d3fc27054bf839f5405ce2fa01a4930af0
tree7a44f17e05374ab7176b6169236c49e90b7b9609
parent58c9cc8ddcfe1cc0247f30ececaadf9c00de12cf
bpf: Extend libbpf with bpf_map_lookup_and_delete_elem_flags

Add bpf_map_lookup_and_delete_elem_flags() libbpf API in order to use
the BPF_F_LOCK flag with the map_lookup_and_delete_elem() function.

Signed-off-by: Denis Salopek <denis.salopek@sartura.hr>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/15b05dafe46c7e0750d110f233977372029d1f62.1620763117.git.denis.salopek@sartura.hr
tools/lib/bpf/bpf.c
tools/lib/bpf/bpf.h
tools/lib/bpf/libbpf.map