Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Dstack-TEE/dstack
/ read_dmi_file
Function
read_dmi_file
guest-agent/src/rpc_service.rs:46–50 ·
view source on GitHub ↗
(name: &str)
Source
from the content-addressed store, hash-verified
44
};
45
46
fn read_dmi_file(name: &str) -> String {
47
fs::read_to_string(format!(
"/sys/class/dmi/id/{name}"
))
48
.map(|s| s.trim().to_string())
49
.unwrap_or_default()
50
}
51
52
#[derive(Clone)]
53
pub struct AppState {
Callers
1
get_info
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected