MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / current_driver_name

Function current_driver_name

crates/openshell-vfio/src/bind.rs:17–19  ·  view source on GitHub ↗
(sysfs: &SysfsRoot, bdf: &str)

Source from the content-addressed store, hash-verified

15 LazyLock::new(|| Mutex::new(VfioIdRegistry::default()));
16
17pub(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).
22pub(crate) fn vfio_id_string(sysfs: &SysfsRoot, bdf: &str) -> Option<String> {

Callers 4

reconcile_stale_bindingsFunction · 0.85
ensure_bound_to_vfioFunction · 0.85
bind_device_to_vfioFunction · 0.85

Calls 2

driver_nameMethod · 0.80
pci_device_refMethod · 0.80

Tested by

no test coverage detected