sys_yield

Function sys_yield 

Source
pub fn sys_yield(trapframe: &mut Trapframe) -> usize
Expand description

Yield execution to the scheduler

This is a cooperative scheduling primitive similar to sched_yield(2). The calling task remains runnable, but allows another ready task to run.

ยงReturns

  • 0 on success