Struct virtio_drivers::VirtIONet
source · [−]pub struct VirtIONet<'a> { /* private fields */ }
Expand description
The virtio network device is a virtual ethernet card.
It has enhanced rapidly and demonstrates clearly how support for new features are added to an existing device. Empty buffers are placed in one virtqueue for receiving packets, and outgoing packets are enqueued into another for transmission in that order. A third command queue is used to control advanced filtering features.
Implementations
sourceimpl VirtIONet<'_>
impl VirtIONet<'_>
sourcepub fn new(header: &'static mut VirtIOHeader) -> Result<Self>
pub fn new(header: &'static mut VirtIOHeader) -> Result<Self>
Create a new VirtIO-Net driver.
sourcepub fn ack_interrupt(&mut self) -> bool
pub fn ack_interrupt(&mut self) -> bool
Acknowledge interrupt.
Auto Trait Implementations
impl<'a> RefUnwindSafe for VirtIONet<'a>
impl<'a> Send for VirtIONet<'a>
impl<'a> Sync for VirtIONet<'a>
impl<'a> Unpin for VirtIONet<'a>
impl<'a> !UnwindSafe for VirtIONet<'a>
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