Read vendor and device IDs from sysfs and format as `"VVVV DDDD"` (no `0x` prefix).
(sysfs: &SysfsRoot, bdf: &str)
| 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> { |
| 23 | sysfs.pci_device_ref(bdf).vfio_id_string() |
| 24 | } |
| 25 | |
| 26 | /// Best-effort registration of a device's vendor:device ID with `vfio-pci`. |
| 27 | /// |
no test coverage detected