mapping of libbpf-specific errno codes to messages
Keep synchronized with deps/libbpf/src/libbpf.h
.
TypeConversion for a single uint32
, for convenience
alias of versions.libbpf
supported BTF version
running kernel release
libbpf version used
libelf version used
Convenience function to create an ARRAY
map using createMap
and construct a ConvArrayMap instance.
Array size, in items
Size of each value, in bytes (will be rounded up to a multiple of 8)
Type conversion for values
Other map options
Map instance
Given an existing file descriptor pointing to an eBPF map, obtain its information and return a MapRef instance pointing to that map (but creating a duplicate descriptor).
Note: If parameters
is passed, it will be used as
a fallback to build the MapRef
for kernels older than 4.13.
Make sure it's correct. If not passed, the call will fail
for older kernels.
If transfer
is true
, the passed FD itself is used
(taking ownership of it) instead of creating a new FD first.
Do this only if the FD isn't being used anywhere else.
If the file descriptor is invalid, the function throws without taking ownership. Note that there is no way to check whether the FD actually points to an eBPF map, the caller is responsible to check first.
file descriptor
options
MapRef instance
Convenience function to create a QUEUE
map using createMap
and construct a ConvQueueMap instance.
Max entries
Size of each value, in bytes
Type conversion for values
Other map options
Map instance
Convenience function to create a STACK
map using createMap
and construct a ConvQueueMap instance.
Max entries
Size of each value, in bytes
Type conversion for values
Other map options
Map instance
Get a file descriptor (fd) of a pinned eBPF object.
Since Linux 4.4.
pinned eBPF object path
fd file descriptor
Generated using TypeDoc
Maximum length of object names, in bytes, including NUL terminator. Longer names will be truncated.