pub type OpenMap<'obj> = OpenMapImpl<'obj>;Expand description
An immutable parsed but not yet loaded BPF map.
Aliased Type§
pub struct OpenMap<'obj> { /* private fields */ }Implementations§
Source§impl<'obj> OpenMap<'obj>
impl<'obj> OpenMap<'obj>
Sourcepub fn new(object: &'obj bpf_map) -> Self
pub fn new(object: &'obj bpf_map) -> Self
Create a new OpenMap from a ptr to a libbpf_sys::bpf_map.
Sourcepub fn initial_value(&self) -> Option<&[u8]>
pub fn initial_value(&self) -> Option<&[u8]>
Retrieve the initial value of the map.
Sourcepub fn max_entries(&self) -> u32
pub fn max_entries(&self) -> u32
Retrieve the maximum number of entries of the map.
Sourcepub fn autocreate(&self) -> bool
pub fn autocreate(&self) -> bool
Return true if the map is set to be auto-created during load, false otherwise.