Struct redbpf::LruPerCpuHashMap [−][src]
Expand description
An LRU per-cpu BPF hash map structure
This provides higher level API for BPF maps whose type is
BPF_MAP_TYPE_LRU_PERCPU_HASH
Implementations
Set per-cpu values
to the BPF map at key
The number of elements in values
should be equal to the number of
possible CPUs. This requirement is automatically fulfilled when
values
is created by
PerCpuValues::new
Err
can be returned if the number of elements is wrong or underlying
bpf_map_update_elem function returns a negative value.
Get per-cpu values corresponding to the key
from the BPF map
If key
is found, Some([PerCpuValues](./struct.PerCpuValues.html))
is returned.
Auto Trait Implementations
impl<'a, K, V> RefUnwindSafe for LruPerCpuHashMap<'a, K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, K, V> Send for LruPerCpuHashMap<'a, K, V> where
K: Send,
V: Send,
impl<'a, K, V> Sync for LruPerCpuHashMap<'a, K, V> where
K: Sync,
V: Sync,
impl<'a, K, V> Unpin for LruPerCpuHashMap<'a, K, V> where
K: Unpin,
impl<'a, K, V> UnwindSafe for LruPerCpuHashMap<'a, K, V> where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more