Commit 139df64d authored by Grant Seltzer's avatar Grant Seltzer Committed by Daniel Borkmann

libbpf: Fix malformed documentation formatting

This fixes the doxygen format documentation above the
user_ring_buffer__* APIs. There has to be a newline
before the @brief, otherwise doxygen won't render them
for libbpf.readthedocs.org.
Signed-off-by: default avatarGrant Seltzer <grantseltzer@gmail.com>
Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20230126024749.522278-1-grantseltzer@gmail.com
parent a5f3a3f7
...@@ -1064,7 +1064,8 @@ struct user_ring_buffer_opts { ...@@ -1064,7 +1064,8 @@ struct user_ring_buffer_opts {
#define user_ring_buffer_opts__last_field sz #define user_ring_buffer_opts__last_field sz
/* @brief **user_ring_buffer__new()** creates a new instance of a user ring /**
* @brief **user_ring_buffer__new()** creates a new instance of a user ring
* buffer. * buffer.
* *
* @param map_fd A file descriptor to a BPF_MAP_TYPE_USER_RINGBUF map. * @param map_fd A file descriptor to a BPF_MAP_TYPE_USER_RINGBUF map.
...@@ -1075,7 +1076,8 @@ struct user_ring_buffer_opts { ...@@ -1075,7 +1076,8 @@ struct user_ring_buffer_opts {
LIBBPF_API struct user_ring_buffer * LIBBPF_API struct user_ring_buffer *
user_ring_buffer__new(int map_fd, const struct user_ring_buffer_opts *opts); user_ring_buffer__new(int map_fd, const struct user_ring_buffer_opts *opts);
/* @brief **user_ring_buffer__reserve()** reserves a pointer to a sample in the /**
* @brief **user_ring_buffer__reserve()** reserves a pointer to a sample in the
* user ring buffer. * user ring buffer.
* @param rb A pointer to a user ring buffer. * @param rb A pointer to a user ring buffer.
* @param size The size of the sample, in bytes. * @param size The size of the sample, in bytes.
...@@ -1095,7 +1097,8 @@ user_ring_buffer__new(int map_fd, const struct user_ring_buffer_opts *opts); ...@@ -1095,7 +1097,8 @@ user_ring_buffer__new(int map_fd, const struct user_ring_buffer_opts *opts);
*/ */
LIBBPF_API void *user_ring_buffer__reserve(struct user_ring_buffer *rb, __u32 size); LIBBPF_API void *user_ring_buffer__reserve(struct user_ring_buffer *rb, __u32 size);
/* @brief **user_ring_buffer__reserve_blocking()** reserves a record in the /**
* @brief **user_ring_buffer__reserve_blocking()** reserves a record in the
* ring buffer, possibly blocking for up to @timeout_ms until a sample becomes * ring buffer, possibly blocking for up to @timeout_ms until a sample becomes
* available. * available.
* @param rb The user ring buffer. * @param rb The user ring buffer.
...@@ -1139,7 +1142,8 @@ LIBBPF_API void *user_ring_buffer__reserve_blocking(struct user_ring_buffer *rb, ...@@ -1139,7 +1142,8 @@ LIBBPF_API void *user_ring_buffer__reserve_blocking(struct user_ring_buffer *rb,
__u32 size, __u32 size,
int timeout_ms); int timeout_ms);
/* @brief **user_ring_buffer__submit()** submits a previously reserved sample /**
* @brief **user_ring_buffer__submit()** submits a previously reserved sample
* into the ring buffer. * into the ring buffer.
* @param rb The user ring buffer. * @param rb The user ring buffer.
* @param sample A reserved sample. * @param sample A reserved sample.
...@@ -1149,7 +1153,8 @@ LIBBPF_API void *user_ring_buffer__reserve_blocking(struct user_ring_buffer *rb, ...@@ -1149,7 +1153,8 @@ LIBBPF_API void *user_ring_buffer__reserve_blocking(struct user_ring_buffer *rb,
*/ */
LIBBPF_API void user_ring_buffer__submit(struct user_ring_buffer *rb, void *sample); LIBBPF_API void user_ring_buffer__submit(struct user_ring_buffer *rb, void *sample);
/* @brief **user_ring_buffer__discard()** discards a previously reserved sample. /**
* @brief **user_ring_buffer__discard()** discards a previously reserved sample.
* @param rb The user ring buffer. * @param rb The user ring buffer.
* @param sample A reserved sample. * @param sample A reserved sample.
* *
...@@ -1158,7 +1163,8 @@ LIBBPF_API void user_ring_buffer__submit(struct user_ring_buffer *rb, void *samp ...@@ -1158,7 +1163,8 @@ LIBBPF_API void user_ring_buffer__submit(struct user_ring_buffer *rb, void *samp
*/ */
LIBBPF_API void user_ring_buffer__discard(struct user_ring_buffer *rb, void *sample); LIBBPF_API void user_ring_buffer__discard(struct user_ring_buffer *rb, void *sample);
/* @brief **user_ring_buffer__free()** frees a ring buffer that was previously /**
* @brief **user_ring_buffer__free()** frees a ring buffer that was previously
* created with **user_ring_buffer__new()**. * created with **user_ring_buffer__new()**.
* @param rb The user ring buffer being freed. * @param rb The user ring buffer being freed.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment