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

Method file

crates/openshell-vfio/src/sysfs.rs:108–110  ·  view source on GitHub ↗
(&self, name: &str)

Source from the content-addressed store, hash-verified

106 }
107
108 pub(crate) fn file(&self, name: &str) -> PathBuf {
109 self.path().join(name)
110 }
111
112 pub(crate) fn read_trimmed(&self, name: &str) -> Result<String, VfioError> {
113 read_sysfs_trimmed(&self.file(name))

Callers 4

read_trimmedMethod · 0.80
driver_nameMethod · 0.80
driver_override_pathMethod · 0.80
driver_unbind_pathMethod · 0.80

Calls 1

pathMethod · 0.80

Tested by

no test coverage detected