feat(kernel): per-process budgets (pages, endpoints, notifs, regions) carved from creator, returned on death; init owns pool
This commit is contained in:
10
crates/types/src/budget.rs
Normal file
10
crates/types/src/budget.rs
Normal 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,
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user