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

Method read_trimmed

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

Source from the content-addressed store, hash-verified

110 }
111
112 pub(crate) fn read_trimmed(&self, name: &str) -> Result<String, VfioError> {
113 read_sysfs_trimmed(&self.file(name))
114 }
115
116 pub(crate) fn vendor(&self) -> Result<String, VfioError> {
117 self.read_trimmed("vendor")

Callers 6

vendorMethod · 0.80
device_idMethod · 0.80
classMethod · 0.80
driver_overrideMethod · 0.80

Calls 2

read_sysfs_trimmedFunction · 0.85
fileMethod · 0.80

Tested by

no test coverage detected