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

Function check

crates/openshell-driver-vm/src/runtime.rs:1364–1370  ·  view source on GitHub ↗
(ret: i32, func: &'static str)

Source from the content-addressed store, hash-verified

1362}
1363
1364fn check(ret: i32, func: &'static str) -> Result<(), String> {
1365 if ret < 0 {
1366 Err(format!("{func} failed with error code {ret}"))
1367 } else {
1368 Ok(())
1369 }
1370}
1371
1372fn c_string_array(strings: &[&str]) -> Result<(Vec<CString>, Vec<*const libc::c_char>), String> {
1373 let owned: Vec<CString> = strings

Callers 10

createMethod · 0.85
set_vm_configMethod · 0.85
set_disksMethod · 0.85
set_workdirMethod · 0.85
add_vsockMethod · 0.85
add_net_unixgramMethod · 0.85
add_net_unixstreamMethod · 0.85
set_console_outputMethod · 0.85
set_execMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected