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

Method device_id

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

Source from the content-addressed store, hash-verified

118 }
119
120 pub(crate) fn device_id(&self) -> Result<String, VfioError> {
121 self.read_trimmed("device")
122 }
123
124 pub(crate) fn class(&self) -> Result<String, VfioError> {
125 self.read_trimmed("class")

Callers 3

vfio_id_stringMethod · 0.80

Calls 1

read_trimmedMethod · 0.80

Tested by

no test coverage detected