feat(kernel): add Exit and ExitThread syscalls with process cleanup

This commit is contained in:
2026-10-18 00:16:38 +02:00
parent d0a0ba788f
commit 74b296a2bf
4 changed files with 80 additions and 0 deletions

View File

@@ -125,6 +125,10 @@ impl<P: Platform> Kernel<P> {
}
}
pub fn process_exists(&self, pid: ProcessId) -> bool {
self.processes.get(pid).is_ok()
}
fn check_cap(
&self,
owner: ProcessId,