libbpf: Add doc comments in libbpf.h
authorGrant Seltzer <grantseltzer@gmail.com>
Sat, 18 Sep 2021 03:14:58 +0000 (23:14 -0400)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 21 Sep 2021 00:23:31 +0000 (17:23 -0700)
commit97c140d94e2e5f050d5f418317cc34f83da3d0f5
treed436ee7a478778279c8377ee39e6cd0b8279ad9a
parente57f52b42d1f51adb263a8bf3d453f2210cbc87a
libbpf: Add doc comments in libbpf.h

This adds comments above functions in libbpf.h which document
their uses. These comments are of a format that doxygen and sphinx
can pick up and render. These are rendered by libbpf.readthedocs.org

These doc comments are for:
- bpf_object__find_map_by_name()
- bpf_map__fd()
- bpf_map__is_internal()
- libbpf_get_error()
- libbpf_num_possible_cpus()

Signed-off-by: Grant Seltzer <grantseltzer@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210918031457.36204-1-grantseltzer@gmail.com
tools/lib/bpf/libbpf.h