(sysfs: &SysfsRoot, bdf: &str)
| 15 | LazyLock::new(|| Mutex::new(VfioIdRegistry::default())); |
| 16 | |
| 17 | pub(crate) fn current_driver_name(sysfs: &SysfsRoot, bdf: &str) -> Option<String> { |
| 18 | sysfs.pci_device_ref(bdf).driver_name() |
| 19 | } |
| 20 | |
| 21 | /// Read vendor and device IDs from sysfs and format as `"VVVV DDDD"` (no `0x` prefix). |
| 22 | pub(crate) fn vfio_id_string(sysfs: &SysfsRoot, bdf: &str) -> Option<String> { |
no test coverage detected