pub fn probe() {
    let mut devices = [None, None, None, None, None, None, None, None];
    for i in 0..MMIO_VIRTIO_DEVICES {
        let address = MMIO_VIRTIO_START + i * MMIO_VIRTIO_STRIDE;
        let builder = DeviceBuilder::new(address);
        if let Ok(device) = builder.init_driver() {
            devices[i] = Some(device);
        }
    }
    let dev = &mut devices[7];
    test_disk(dev)
}
/// Sondeo de dispositivos en la memoria Virtio
Sondeo de dispositivos en la memoria Virtio
Sondeo de dispositivos en la memoria Virtio
pub fn probe() {
    let mut devices = [None, None, None, None, None, None, None, None];
    for i in 0..MMIO_VIRTIO_DEVICES {
        let address = MMIO_VIRTIO_START + i * MMIO_VIRTIO_STRIDE;
        let builder = DeviceBuilder::new(address);
        if let Ok(device) = builder.init_driver() {
            devices[i] = Some(device);
        }
    }
    let dev = &mut devices[7];
    test_disk(dev)
}
pub fn probe ( ) { let mut devices = [ None , None , None , None , None , None , None , None ] ; for i in 0 .. MMIO_VIRTIO_DEVICES { let address = MMIO_VIRTIO_START + i * MMIO_VIRTIO_STRIDE ; let builder = DeviceBuilder :: new ( address ) ; if let Ok ( device ) = builder . init_driver ( ) { devices [ i ] = Some ( device ) ; } } let dev = & mut devices [ 7 ] ; test_disk ( dev ) }
Sondeo de dispositivos en la memoria Virtio
Sondeo de dispositivos en la memoria Virtio