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

Function create_new_id_file

crates/openshell-vfio/src/test_support.rs:62–66  ·  view source on GitHub ↗
(sysfs: &SysfsRoot)

Source from the content-addressed store, hash-verified

60}
61
62pub fn create_new_id_file(sysfs: &SysfsRoot) {
63 let new_id_path = sysfs.vfio_pci_new_id();
64 fs::create_dir_all(new_id_path.parent().unwrap()).unwrap();
65 fs::write(new_id_path, "").unwrap();
66}

Calls 1

vfio_pci_new_idMethod · 0.80

Tested by

no test coverage detected