MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / sys_new_rendezvous

Function sys_new_rendezvous

kernel/src/syscalls.rs:528–541  ·  view source on GitHub ↗

Create a new pair of Rendezvous handles

(context_ptr: *mut Context)

Source from the content-addressed store, hash-verified

526
527/// Create a new pair of Rendezvous handles
528fn sys_new_rendezvous(context_ptr: *mut Context) {
529 let context = unsafe {&mut (*context_ptr)};
530
531 match process::new_rendezvous() {
532 Ok((handle1, handle2)) => {
533 context.rax = 0; // Success!
534 context.rdi = handle1;
535 context.rsi = handle2;
536 }
537 Err(code) => {
538 context.rax = code;
539 }
540 }
541}
542
543/// Make a copy of a Rendezvous
544///

Callers 1

dispatch_syscallFunction · 0.85

Calls 1

new_rendezvousFunction · 0.70

Tested by

no test coverage detected