]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Clarify flags in ringbuf helpers
authorPedro Tammela <pctammela@gmail.com>
Mon, 12 Apr 2021 19:24:32 +0000 (16:24 -0300)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 13 Apr 2021 04:28:33 +0000 (21:28 -0700)
commit854ab5ae8f9a9d569477c33b933931c9a2aefdaa
treecde581c86fcce3f7041a4039161d535497def5eb
parent7cf3fad2ea8c5ac1244d0495e18aac12ed80cc43
libbpf: Clarify flags in ringbuf helpers

In 'bpf_ringbuf_reserve()' we require the flag to '0' at the moment.

For 'bpf_ringbuf_{discard,submit,output}' a flag of '0' might send a
notification to the process if needed.

Signed-off-by: Pedro Tammela <pctammela@mojatatu.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210412192434.944343-1-pctammela@mojatatu.com
include/uapi/linux/bpf.h
tools/include/uapi/linux/bpf.h