(path: &Path, value: &str)
| 217 | } |
| 218 | |
| 219 | pub(crate) fn write_sysfs(path: &Path, value: &str) -> Result<(), VfioError> { |
| 220 | fs::write(path, value).map_err(|source| VfioError::SysfsIo { |
| 221 | path: path.display().to_string(), |
| 222 | source, |
| 223 | }) |
| 224 | } |
| 225 | |
| 226 | #[cfg(test)] |
| 227 | mod tests { |
no outgoing calls
no test coverage detected