(sysfs: &SysfsRoot)
| 54 | } |
| 55 | |
| 56 | pub 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 | |
| 62 | pub fn create_new_id_file(sysfs: &SysfsRoot) { |
| 63 | let new_id_path = sysfs.vfio_pci_new_id(); |
no test coverage detected