Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/OpenShell
/ pci_device
Method
pci_device
crates/openshell-vfio/src/sysfs.rs:42–44 ·
view source on GitHub ↗
(&self, bdf: &str)
Source
from the content-addressed store, hash-verified
40
}
41
42
pub fn pci_device(&self, bdf: &str) -> PathBuf {
43
self.pci_devices_dir().join(bdf)
44
}
45
46
pub(crate) fn pci_device_ref<
'a>(&'
a self, bdf: &
'a str) -> SysfsPciDevice<'
a> {
47
SysfsPciDevice { sysfs: self, bdf }
Callers
15
iommu_group
Method · 0.80
path
Method · 0.80
test_reconcile_clears_stale_driver_override_when_not_on_vfio
Function · 0.80
create_pci_device
Function · 0.80
set_mock_driver
Function · 0.80
test_guard_drop_restores_companions
Function · 0.80
test_guard_disarm_skips_restore
Function · 0.80
test_adopt_single_already_bound_device
Function · 0.80
test_adopt_group_already_bound_devices
Function · 0.80
test_validate_pci_for_passthrough_rejects_iommu_group_conflict
Function · 0.80
test_validate_pci_group_for_passthrough_accepts_complete_group
Function · 0.80
test_probe_host_vfio_candidates_skips_devices_without_iommu_group
Function · 0.80
Calls
1
pci_devices_dir
Method · 0.80
Tested by
15
test_reconcile_clears_stale_driver_override_when_not_on_vfio
Function · 0.64
create_pci_device
Function · 0.64
set_mock_driver
Function · 0.64
test_guard_drop_restores_companions
Function · 0.64
test_guard_disarm_skips_restore
Function · 0.64
test_adopt_single_already_bound_device
Function · 0.64
test_adopt_group_already_bound_devices
Function · 0.64
test_validate_pci_for_passthrough_rejects_iommu_group_conflict
Function · 0.64
test_validate_pci_group_for_passthrough_accepts_complete_group
Function · 0.64
test_probe_host_vfio_candidates_skips_devices_without_iommu_group
Function · 0.64
test_prepare_pci_for_passthrough_single_device_group
Function · 0.64
test_prepare_pci_disarm_prevents_drop_restore
Function · 0.64