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

Function write_sysfs

crates/openshell-vfio/src/sysfs.rs:219–224  ·  view source on GitHub ↗
(path: &Path, value: &str)

Source from the content-addressed store, hash-verified

217}
218
219pub(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)]
227mod tests {

Callers 7

clear_driver_overrideMethod · 0.85
reconcile_stale_bindingsFunction · 0.85
register_vfio_new_idFunction · 0.85
deregister_vfio_idFunction · 0.85
cleanup_partial_bindFunction · 0.85
bind_device_to_vfioFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected