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

Method system

crates/openshell-vfio/src/sysfs.rs:22–26  ·  view source on GitHub ↗

Production root pointing at the real `/sys` filesystem.

()

Source from the content-addressed store, hash-verified

20impl SysfsRoot {
21 /// Production root pointing at the real `/sys` filesystem.
22 pub fn system() -> Self {
23 Self {
24 base: PathBuf::from("/sys"),
25 }
26 }
27
28 /// Custom root for testing.
29 pub fn new(base: impl Into<PathBuf>) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected