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

Function sys_exit

os/src/syscall/process.rs:12–15  ·  view source on GitHub ↗
(exit_code: i32)

Source from the content-addressed store, hash-verified

10use alloc::vec::Vec;
11
12pub fn sys_exit(exit_code: i32) -> ! {
13 exit_current_and_run_next(exit_code);
14 panic!("Unreachable in sys_exit!");
15}
16
17pub fn sys_yield() -> isize {
18 suspend_current_and_run_next();

Callers 1

syscallFunction · 0.70

Calls 1

Tested by

no test coverage detected