mirror of https://github.com/mkerrisk/man-pages
bpf.2: Document close-on-exec semantics
The close-on-exec file descriptor flag is automatically enabled for FDs returned by bpf(). Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
cf8bac925f
commit
0f166ce187
|
@ -153,6 +153,9 @@ is one of the following:
|
|||
.TP
|
||||
.B BPF_MAP_CREATE
|
||||
Create a map and return a file descriptor that refers to the map.
|
||||
The close-on-exec file descriptor flag (see
|
||||
.BR fcntl (2))
|
||||
is automatically enabled for the new file descriptor.
|
||||
.TP
|
||||
.B BPF_MAP_LOOKUP_ELEM
|
||||
Look up an element by key in a specified map and return its value.
|
||||
|
@ -170,6 +173,9 @@ of the next element.
|
|||
.B BPF_PROG_LOAD
|
||||
Verify and load an eBPF program,
|
||||
returning a new file descriptor associated with the program.
|
||||
The close-on-exec file descriptor flag (see
|
||||
.BR fcntl (2))
|
||||
is automatically enabled for the new file descriptor.
|
||||
.P
|
||||
The
|
||||
.I bpf_attr
|
||||
|
|
Loading…
Reference in New Issue