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

Function sys_yield

kernel/src/syscalls.rs:522–525  ·  view source on GitHub ↗

Yield to another process

(context_ptr: *mut Context)

Source from the content-addressed store, hash-verified

520
521/// Yield to another process
522fn sys_yield(context_ptr: *mut Context) {
523 let next_stack = process::schedule_next(context_ptr as usize);
524 interrupts::launch_thread(next_stack);
525}
526
527/// Create a new pair of Rendezvous handles
528fn sys_new_rendezvous(context_ptr: *mut Context) {

Callers 1

dispatch_syscallFunction · 0.85

Calls 2

schedule_nextFunction · 0.85
launch_threadFunction · 0.85

Tested by

no test coverage detected