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

Method set_console_output

crates/openshell-driver-vm/src/runtime.rs:1155–1161  ·  view source on GitHub ↗
(&self, path: &Path)

Source from the content-addressed store, hash-verified

1153 }
1154
1155 fn set_console_output(&self, path: &Path) -> Result<(), String> {
1156 let console_c = path_to_cstring(path)?;
1157 check(
1158 unsafe { (self.krun.krun_set_console_output)(self.ctx_id, console_c.as_ptr()) },
1159 "krun_set_console_output",
1160 )
1161 }
1162
1163 fn set_exec(&self, exec_path: &str, args: &[String], env: &[String]) -> Result<(), String> {
1164 let exec_c = CString::new(exec_path).map_err(|e| format!("invalid exec path: {e}"))?;

Callers 1

run_libkrun_vmFunction · 0.80

Calls 2

path_to_cstringFunction · 0.85
checkFunction · 0.85

Tested by

no test coverage detected