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

Function sys_exit

user/src/syscall.rs:74–77  ·  view source on GitHub ↗
(exit_code: i32)

Source from the content-addressed store, hash-verified

72}
73
74pub fn sys_exit(exit_code: i32) -> ! {
75 syscall(SYSCALL_EXIT, [exit_code as usize, 0, 0]);
76 panic!("sys_exit never returns!");
77}
78
79pub fn sys_sleep(sleep_ms: usize) -> isize {
80 syscall(SYSCALL_SLEEP, [sleep_ms, 0, 0])

Callers 1

exitFunction · 0.70

Calls 1

syscallFunction · 0.70

Tested by

no test coverage detected