Size of the array in items
Iterate through the array values.
This works like values but the iteration is performed in the kernel, returning many items at once. The interator yields each batch produced by the kernel, until an error is found or there are no more entries.
batchSize
specifies the requested size, but batches may
be smaller. If the kernel returns a partial batch together
with an error, the partial batch will be yielded before
throwing the error. If the map is empty, nothing is yielded.
Since Linux 5.6.
Amount of entries to request per batch, must be non-zero
Operation flags, see MapLookupFlags
Sets a batch of array indexes to some values. Throws if any of the indexes is invalid.
Since Linux 5.6.
Note that if an error is thrown, part of the entries
could already have been processed. The thrown error
includes a count
field that, if not undefined,
corresponds to the amount of processed entries.
Array entries to set (indexes are not necessarily unique or sorted).
Operation flags, see MapUpdateFlags
Convenience function. Alias of values.
Fetches all values of the array using getBatch.
Iterates through the values of the array.
Freezes the map, making it non-modifiable from userspace. The map stays writeable from BPF side.
Since Linux 5.2.
Fetch the value at a certain index. Throws on invalid indexes.
Array index
Operation flags (since Linux 5.1), see MapLookupFlags
Array value
Set the value at a certain index. Throws on invalid indexes.
Array index
Nwe value
Operation flags (since Linux 3.19), see MapUpdateFlags
Generated using TypeDoc
Specialized version of IMap for
ARRAY
maps.RawArrayMap returns array values directly as
Buffer
with no conversion, and ConvArrayMap performs the conversion specified at construction time.Keep in mind that
ARRAY
maps aren't atomic at all.