#[repr(C)]pub struct VirtqDesc {
pub addr: u64,
pub len: u32,
pub flags: u16,
pub next: u16,
}Expand description
Virtqueue descriptor table entry.
Each descriptor points to a physically contiguous buffer in guest memory.
Descriptors can be chained via the next field when VIRTQ_DESC_F_NEXT
is set in flags.
Fields§
§addr: u64Physical address of the guest buffer
len: u32Length of the guest buffer in bytes
flags: u16Descriptor flags (NEXT, WRITE, INDIRECT)
next: u16Index of the next descriptor in the chain (valid if NEXT flag is set)
Trait Implementations§
impl Copy for VirtqDesc
Auto Trait Implementations§
impl Freeze for VirtqDesc
impl RefUnwindSafe for VirtqDesc
impl Send for VirtqDesc
impl Sync for VirtqDesc
impl Unpin for VirtqDesc
impl UnwindSafe for VirtqDesc
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)