Fortify the metadata memory model and adjust the Page casting APIs

This commit is contained in:
Zhang Junyang
2024-05-27 09:10:09 +00:00
committed by Tate, Hongliang Tian
parent 14e1b1a9fc
commit 3579d88aa6
18 changed files with 139 additions and 1397 deletions

View File

@ -32,7 +32,7 @@ pub fn sys_sched_getaffinity(
// Placeholder for future implementation.
}
_ => {
match process_table::get_process(&pid) {
match process_table::get_process(pid) {
Some(_process) => { /* Placeholder if process-specific logic needed */ }
None => return Err(Error::with_message(Errno::ESRCH, "process does not exist")),
}