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.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -3168,7 +3168,7 @@ union bpf_attr { · 3167 unmodified lines | |||
| 3168 | * Return | 3168 | * 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 | * Description | 3172 | * 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 of | 3174 | * If BPF_RB_NO_WAKEUP is specified in *flags*, no notification of |