pub fn new(mem: GuestMemoryMmap, device: Arc<Mutex<dyn VirtioDevice>>) -> MmioTransport {
        let interrupt_status = device.lock().expect("Poisoned lock").interrupt_status();

        MmioTransport {
            device,
            features_select: 0,
            acked_features_select: 0,
            queue_select: 0,
            device_status: device_status::INIT,
            config_generation: 0,
            mem,
            interrupt_status,
        }
    }
/// Constructs a new MMIO transport for the given virtio device.
Constructs a new MMIO transport for the given virtio device.
Constructs a new MMIO transport for the given virtio device .
pub fn new(mem: GuestMemoryMmap, device: Arc<Mutex<dyn VirtioDevice>>) -> MmioTransport {
        let interrupt_status = device.lock().expect("Poisoned lock").interrupt_status();
        MmioTransport {
            device,
            features_select: 0,
            acked_features_select: 0,
            queue_select: 0,
            device_status: device_status::INIT,
            config_generation: 0,
            mem,
            interrupt_status,
        }
    }
pub fn new ( mem : GuestMemoryMmap , device : Arc < Mutex < dyn VirtioDevice > > ) -> MmioTransport { let interrupt_status = device . lock ( ) . expect ( " " ) . interrupt_status ( ) ; MmioTransport { device , features_select : 0 , acked_features_select : 0 , queue_select : 0 , device_status : device_status :: INIT , config_generation : 0 , mem , interrupt_status , } }
Constructs a new MMIO transport for the given virtio device.
Constructs a new MMIO transport for the given virtio device .
mem
GuestMemoryMmap
device
Arc<Mutex<dyn VirtioDevice>>
mem
GuestMemoryMmap
device
Arc<Mutex<dyn VirtioDevice>>