bpf: update bpf_{g,s}et_retval documentation
authorStanislav Fomichev <sdf@google.com>
Tue, 23 Aug 2022 22:25:54 +0000 (15:25 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 23 Aug 2022 23:08:22 +0000 (16:08 -0700)
commit2172fb8007eaafbef18563afb6c1ae5a976bf787
tree6fd2a47910c543142915bf19bf17c92892f28ab6
parent8a67f2de9b1dc3cf8b75b4bf589efb1f08e3e9b8
bpf: update bpf_{g,s}et_retval documentation

* replace 'syscall' with 'upper layers', still mention that it's being
  exported via syscall errno
* describe what happens in set_retval(-EPERM) + return 1
* describe what happens with bind's 'return 3'

Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/r/20220823222555.523590-5-sdf@google.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/uapi/linux/bpf.h
tools/include/uapi/linux/bpf.h