Struct libbpf_rs::OpenObject [−][src]
pub struct OpenObject { /* fields omitted */ }Expand description
Represents an opened (but not yet loaded) BPF object file.
Use this object to access OpenMaps and OpenPrograms.
Implementations
Takes ownership from pointer.
Safety
If ptr is unopen or already loaded then further operations on the returned object are
undefined.
It is not safe to manipulate ptr after this operation.
Takes underlying libbpf_sys::bpf_object pointer.
Get a reference to OpenMap with the name name, if one exists.
Get a mutable reference to OpenMap with the name name, if one exists.
Get an iterator over references to all OpenMaps.
Note that this will include automatically generated .data, .rodata, .bss, and
.kconfig maps.
Get an iterator over mutable references to all OpenMaps.
Note that this will include automatically generated .data, .rodata, .bss, and
.kconfig maps.
Get a reference to OpenProgram with the name name, if one exists.
Get a mutable reference to OpenProgram with the name name, if one exists.
Get an iterator over references to all OpenPrograms.
Get an iterator over mutable references to all OpenPrograms.
