mirror of https://github.com/mkerrisk/man-pages
bpf.2: Minor fixes
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
54513c009c
commit
cc42e9b82f
11
man2/bpf.2
11
man2/bpf.2
|
@ -42,7 +42,7 @@ For both cBPF and eBPF programs,
|
||||||
the kernel statically analyzes the programs before loading them,
|
the kernel statically analyzes the programs before loading them,
|
||||||
in order to ensure that they cannot harm the running system.
|
in order to ensure that they cannot harm the running system.
|
||||||
.P
|
.P
|
||||||
eBPF extends cBPF in multiple ways including the ability to call
|
eBPF extends cBPF in multiple ways, including the ability to call
|
||||||
in-kernel helper functions (via the
|
in-kernel helper functions (via the
|
||||||
.B BPF_CALL
|
.B BPF_CALL
|
||||||
opcode extension provided by eBPF)
|
opcode extension provided by eBPF)
|
||||||
|
@ -83,8 +83,8 @@ A new event triggers execution of the eBPF program, which
|
||||||
may store information about the event in the maps.
|
may store information about the event in the maps.
|
||||||
Beyond storing data, eBPF programs may call a fixed set of
|
Beyond storing data, eBPF programs may call a fixed set of
|
||||||
in-kernel helper functions.
|
in-kernel helper functions.
|
||||||
The same program can be attached to multiple events and different programs can
|
The same program can be attached to multiple events and different
|
||||||
access the same map:
|
eBPF programs can access the same map:
|
||||||
.\" FIXME Can maps be shared between processes? (E.g., what happens
|
.\" FIXME Can maps be shared between processes? (E.g., what happens
|
||||||
.\" when fork() is called?)
|
.\" when fork() is called?)
|
||||||
|
|
||||||
|
@ -345,7 +345,7 @@ bpf_lookup_elem(int fd, void *key, void *value)
|
||||||
|
|
||||||
If an element is found,
|
If an element is found,
|
||||||
the operation returns zero and stores the element's value into
|
the operation returns zero and stores the element's value into
|
||||||
.I value.
|
.IR value .
|
||||||
.\" FIXME Here, I think we need some statement about what 'value' must
|
.\" FIXME Here, I think we need some statement about what 'value' must
|
||||||
.\" point to. Presumable, it must be a buffer at least as large as
|
.\" point to. Presumable, it must be a buffer at least as large as
|
||||||
.\" the map's 'value_size' attribute?
|
.\" the map's 'value_size' attribute?
|
||||||
|
@ -885,7 +885,8 @@ commands require the caller to have the
|
||||||
capability.
|
capability.
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR seccomp (2),
|
.BR seccomp (2),
|
||||||
.BR socket (7)
|
.BR socket (7),
|
||||||
|
.BR tc (8)
|
||||||
|
|
||||||
Both classic and extended BPF are explained in the kernel source file
|
Both classic and extended BPF are explained in the kernel source file
|
||||||
.IR Documentation/networking/filter.txt .
|
.IR Documentation/networking/filter.txt .
|
||||||
|
|
Loading…
Reference in New Issue