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)
commite59618f0f46fa6cf86d5b82380e0f453756b282b
tree0f7543f6ce8d41aff5493dfd2f575f840ea177c4
parent70bc793382a0e37ba4e35e4d1a317b280b829a44
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