pub struct LegacyMap {
pub def: bpf_map_def,
pub section_index: usize,
pub section_kind: EbpfSectionKind,
pub symbol_index: Option<usize>,
pub data: Vec<u8>,
}
Expand description
A map declared with legacy BPF map declaration style, most likely from a maps
section.
See Drop support for legacy BPF map declaration syntax - Libbpf: the road to v1.0 for more info.
Fields§
§def: bpf_map_def
The definition of the map
section_index: usize
The section index
section_kind: EbpfSectionKind
The section kind
symbol_index: Option<usize>
The symbol index.
This is None for data maps (.bss .data and .rodata). We don’t need symbols to relocate those since they don’t contain multiple maps, but are just a flat array of bytes.
data: Vec<u8>
The map data
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LegacyMap
impl RefUnwindSafe for LegacyMap
impl Send for LegacyMap
impl Sync for LegacyMap
impl Unpin for LegacyMap
impl UnwindSafe for LegacyMap
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more