Skip to main content

probe_mmio_device

Function probe_mmio_device 

Source
pub fn probe_mmio_device(
    reg_base: *mut u8,
    _reg_size: usize,
) -> Option<(DeviceType, MmioTransport)>
Expand description

Try to probe a VirtIO MMIO device from the given memory region.

If the device is recognized, returns the device type and a transport object for later operations. Otherwise, returns None.