MCPcopy Index your code
hub / github.com/LibertyOS-Development/kernel / exit

Function exit

src/sys/proc.rs:297–304  ·  view source on GitHub ↗

Exit

()

Source from the content-addressed store, hash-verified

295
296// Exit
297pub fn exit()
298{
299 let tab = PROCTAB.read();
300 let proc = &tab[id()];
301 crate::mem::p_dealloc(proc.code_address, proc.code_address);
302 MAXPID.fetch_sub(1, Ordering::SeqCst);
303 setid(0);
304}
305
306
307// File handle

Callers

nothing calls this directly

Calls 4

idFunction · 0.85
p_deallocFunction · 0.85
setidFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected