Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_string
Method · 0.80
probe_host_vfio_candidates
Function · 0.80
probe_host_nvidia_vfio_readiness
Function · 0.80
Calls
1
read_trimmed
Method · 0.80
Tested by
no test coverage detected