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

Function exit

user/src/task.rs:3–5  ·  view source on GitHub ↗
(exit_code: i32)

Source from the content-addressed store, hash-verified

1use super::*;
2
3pub fn exit(exit_code: i32) -> ! {
4 sys_exit(exit_code);
5}
6pub fn yield_() -> isize {
7 sys_yield()
8}

Callers 15

_startFunction · 0.85
fFunction · 0.85
sleepyFunction · 0.85
thread_aFunction · 0.85
thread_bFunction · 0.85
thread_cFunction · 0.85
producerFunction · 0.85
consumerFunction · 0.85
mainFunction · 0.85
thread_fnFunction · 0.85
fFunction · 0.85

Calls 1

sys_exitFunction · 0.70

Tested by 4

mainFunction · 0.68
firstFunction · 0.68
secondFunction · 0.68
mainFunction · 0.68