History

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.

Andrii Nakryiko committed 6 years ago

Commit b0659d81 parent c92cbae2 files · +2 −2Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/bpf.h+1−1
@@ -3168,7 +3168,7 @@ union bpf_attr { · 3167 unmodified lines
3168 * Return3168 * Return
3169 * The id is returned or 0 in case the id could not be retrieved.3169 * The id is returned or 0 in case the id could not be retrieved.
3170 *3170 *
3171 * void *bpf_ringbuf_output(void *ringbuf, void *data, u64 size, u64 flags)3171 * int bpf_ringbuf_output(void *ringbuf, void *data, u64 size, u64 flags)
3172 * Description3172 * Description
3173 * Copy *size* bytes from *data* into a ring buffer *ringbuf*.3173 * Copy *size* bytes from *data* into a ring buffer *ringbuf*.
3174 * If BPF_RB_NO_WAKEUP is specified in *flags*, no notification of3174 * If BPF_RB_NO_WAKEUP is specified in *flags*, no notification of