feat(kernel): per-process budgets (pages, endpoints, notifs, regions) carved from creator, returned on death; init owns pool

This commit is contained in:
2026-10-27 15:08:58 +01:00
parent 7415bab7f5
commit 4049ba5007
46 changed files with 672 additions and 119 deletions

View File

@@ -0,0 +1,10 @@
//! How much a process may hold, as a creator asks for it in `CreateProcess`
//! (`a1..a4`). The kernel carves it from the creator's own budget.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
pub struct Limits {
pub pages: usize,
pub endpoints: usize,
pub notifications: usize,
pub regions: usize,
}

View File

@@ -4,6 +4,7 @@ pub mod address;
pub mod badge;
pub mod bootinfo;
pub mod bounded;
pub mod budget;
pub mod display;
pub mod generation;
pub mod id;