Commit b0659d8a authored by Andrii Nakryiko's avatar Andrii Nakryiko Committed by Daniel Borkmann
Browse files

bpf: Fix definition of bpf_ringbuf_output() helper in UAPI comments



Fix definition of bpf_ringbuf_output() in UAPI header comments, which is used
to generate libbpf's bpf_helper_defs.h header. Return value is a number (error
code), not a pointer.

Fixes: 457f4436 ("bpf: Implement BPF ring buffer and verifier support for it")
Signed-off-by: default avatarAndrii Nakryiko <andriin@fb.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200615214926.3638836-1-andriin@fb.com
parent c92cbaea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3168,7 +3168,7 @@ union bpf_attr {
 *	Return
 *		The id is returned or 0 in case the id could not be retrieved.
 *
 * void *bpf_ringbuf_output(void *ringbuf, void *data, u64 size, u64 flags)
 * int bpf_ringbuf_output(void *ringbuf, void *data, u64 size, u64 flags)
 * 	Description
 * 		Copy *size* bytes from *data* into a ring buffer *ringbuf*.
 * 		If BPF_RB_NO_WAKEUP is specified in *flags*, no notification of
+1 −1
Original line number Diff line number Diff line
@@ -3168,7 +3168,7 @@ union bpf_attr {
 *	Return
 *		The id is returned or 0 in case the id could not be retrieved.
 *
 * void *bpf_ringbuf_output(void *ringbuf, void *data, u64 size, u64 flags)
 * int bpf_ringbuf_output(void *ringbuf, void *data, u64 size, u64 flags)
 * 	Description
 * 		Copy *size* bytes from *data* into a ring buffer *ringbuf*.
 * 		If BPF_RB_NO_WAKEUP is specified in *flags*, no notification of