Function driver_virtio::probe_pci_device
source · pub fn probe_pci_device<H: VirtIoHal>(
root: &mut PciRoot,
bdf: DeviceFunction,
dev_info: &DeviceFunctionInfo
) -> Option<(DeviceType, PciTransport)>
Expand description
Try to probe a VirtIO PCI device from the given PCI address.
If the device is recognized, returns the device type and a transport object
for later operations. Otherwise, returns None
.