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

Function create_remove_id_file

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

Source from the content-addressed store, hash-verified

54}
55
56pub fn create_remove_id_file(sysfs: &SysfsRoot) {
57 let remove_id_path = sysfs.vfio_pci_remove_id();
58 fs::create_dir_all(remove_id_path.parent().unwrap()).unwrap();
59 fs::write(remove_id_path, "").unwrap();
60}
61
62pub fn create_new_id_file(sysfs: &SysfsRoot) {
63 let new_id_path = sysfs.vfio_pci_new_id();

Calls 1

vfio_pci_remove_idMethod · 0.80

Tested by

no test coverage detected