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

Method class

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

Source from the content-addressed store, hash-verified

122 }
123
124 pub(crate) fn class(&self) -> Result<String, VfioError> {
125 self.read_trimmed("class")
126 }
127
128 pub(crate) fn driver_name(&self) -> Option<String> {
129 fs::read_link(self.file("driver"))

Callers 2

Calls 1

read_trimmedMethod · 0.80

Tested by

no test coverage detected