Convenience function. Alias of consumeValues.
Convenience function. Consumes values repeatedly until the queue is empty.
In cases where another program is pushing things to the queue concurrently, it is recommended to place a limit to avoid loop starvation.
Maximum amount of values to consume
Convenience function. Tests if the queue is empty.
Freezes the map, making it non-modifiable from userspace. The map stays writeable from BPF side.
Since Linux 5.2.
Get the next value without removing it from the queue.
Operation flags (since Linux 5.1), see MapLookupFlags
Entry value, or undefined
if the queue is empty
Consume the next value from the queue.
Entry value, or undefined
if the queue is empty
Add a new value to the queue.
Entry value
Operation flags, see MapUpdateFlags
Generated using TypeDoc
Specialized version of IMap for queue types, currently
QUEUE
andSTACK
.RawQueueMap returns queue values directly as
Buffer
with no conversion, and ConvQueueMap performs the conversion specified at construction time.