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

Function create_probe_file

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

Source from the content-addressed store, hash-verified

48}
49
50pub fn create_probe_file(sysfs: &SysfsRoot) {
51 let probe = sysfs.drivers_probe();
52 fs::create_dir_all(probe.parent().unwrap()).unwrap();
53 fs::write(&probe, "").unwrap();
54}
55
56pub fn create_remove_id_file(sysfs: &SysfsRoot) {
57 let remove_id_path = sysfs.vfio_pci_remove_id();

Calls 1

drivers_probeMethod · 0.80

Tested by

no test coverage detected