]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Add documentation for bpf_map batch operations
authorGrant Seltzer <grantseltzer@gmail.com>
Thu, 6 Jan 2022 20:13:05 +0000 (15:13 -0500)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 6 Jan 2022 23:12:42 +0000 (15:12 -0800)
commita07aaa934a8c6b7a1062b246e16f88767257b7ae
tree0f7543f6ce8d41aff5493dfd2f575f840ea177c4
parent243d94ff2705316fcdd38be096bdb23693a36c1f
libbpf: Add documentation for bpf_map batch operations

This adds documention for:

- bpf_map_delete_batch()
- bpf_map_lookup_batch()
- bpf_map_lookup_and_delete_batch()
- bpf_map_update_batch()

This also updates the public API for the `keys` parameter
of `bpf_map_delete_batch()`, and both the
`keys` and `values` parameters of `bpf_map_update_batch()`
to be constants.

Signed-off-by: Grant Seltzer <grantseltzer@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20220106201304.112675-1-grantseltzer@gmail.com
tools/lib/bpf/bpf.c
tools/lib/bpf/bpf.h