(sysfs: &SysfsRoot)
| 48 | } |
| 49 | |
| 50 | pub 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 | |
| 56 | pub fn create_remove_id_file(sysfs: &SysfsRoot) { |
| 57 | let remove_id_path = sysfs.vfio_pci_remove_id(); |
no test coverage detected