MCPcopy 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 }

Calls 1

pci_devices_dirMethod · 0.80