#[repr(C)]pub struct XdpUmemReg {
pub addr: u64,
pub len: u64,
pub chunk_size: u32,
pub headroom: u32,
pub flags: XdpUmemRegFlags,
}
Expand description
XDP umem registration.
struct xdp_umem_reg
Fields§
§addr: u64
Start address of UMEM.
len: u64
Umem length in bytes.
chunk_size: u32
Chunk size in bytes.
headroom: u32
Headroom in bytes.
flags: XdpUmemRegFlags
Flags.
Requires kernel version 5.4.
Trait Implementations§
source§impl Clone for XdpUmemReg
impl Clone for XdpUmemReg
source§fn clone(&self) -> XdpUmemReg
fn clone(&self) -> XdpUmemReg
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for XdpUmemReg
impl Debug for XdpUmemReg
source§impl Hash for XdpUmemReg
impl Hash for XdpUmemReg
source§impl PartialEq for XdpUmemReg
impl PartialEq for XdpUmemReg
source§fn eq(&self, other: &XdpUmemReg) -> bool
fn eq(&self, other: &XdpUmemReg) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for XdpUmemReg
impl Eq for XdpUmemReg
impl StructuralPartialEq for XdpUmemReg
Auto Trait Implementations§
impl Freeze for XdpUmemReg
impl RefUnwindSafe for XdpUmemReg
impl Send for XdpUmemReg
impl Sync for XdpUmemReg
impl Unpin for XdpUmemReg
impl UnwindSafe for XdpUmemReg
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