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

Method driver_name

crates/openshell-vfio/src/sysfs.rs:128–132  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

126 }
127
128 pub(crate) fn driver_name(&self) -> Option<String> {
129 fs::read_link(self.file("driver"))
130 .ok()
131 .and_then(|p| p.file_name().map(|n| n.to_string_lossy().into_owned()))
132 }
133
134 pub(crate) fn driver_override_path(&self) -> PathBuf {
135 self.file("driver_override")

Callers 1

current_driver_nameFunction · 0.80

Calls 1

fileMethod · 0.80

Tested by

no test coverage detected