MCPcopy Create free account
hub / github.com/chyyuu/os_kernel_lab / sys_yield

Function sys_yield

os/src/syscall/process.rs:17–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15}
16
17pub fn sys_yield() -> isize {
18 suspend_current_and_run_next();
19 0
20}
21
22pub fn sys_get_time() -> isize {
23 get_time_ms() as isize

Callers 1

syscallFunction · 0.70

Calls 1

Tested by

no test coverage detected