pub struct BpfHelper(pub u32);
Expand description
eBPF helper function wrapper. See bpf-helpers(7)
Tuple field BpfHelper::0
represents the unique id reserved by the kernel to represent the helper function. This
unique id works almost as a counter with a max value:
__BPF_FUNC_MAX_ID
.
This max limit changes between kernel versions due to the addition of eBPF helper functions.
For more information on eBPF helper functions, check out (although slightly outdated) Marsden’s Oracle blog post.
Tuple Fields
0: u32
Trait Implementations
impl Copy for BpfHelper
impl Eq for BpfHelper
impl StructuralEq for BpfHelper
impl StructuralPartialEq for BpfHelper
Auto Trait Implementations
impl RefUnwindSafe for BpfHelper
impl Send for BpfHelper
impl Sync for BpfHelper
impl Unpin for BpfHelper
impl UnwindSafe for BpfHelper
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more