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

Method set_workdir

crates/openshell-driver-vm/src/runtime.rs:1086–1092  ·  view source on GitHub ↗
(&self, workdir: &str)

Source from the content-addressed store, hash-verified

1084 }
1085
1086 fn set_workdir(&self, workdir: &str) -> Result<(), String> {
1087 let workdir_c = CString::new(workdir).map_err(|e| format!("invalid workdir: {e}"))?;
1088 check(
1089 unsafe { (self.krun.krun_set_workdir)(self.ctx_id, workdir_c.as_ptr()) },
1090 "krun_set_workdir",
1091 )
1092 }
1093
1094 fn disable_implicit_vsock(&self) -> Result<(), String> {
1095 check(

Callers 1

run_libkrun_vmFunction · 0.80

Calls 1

checkFunction · 0.85

Tested by

no test coverage detected