feat(mm): add query

This commit is contained in:
Loïc Grégoire
2026-04-24 14:33:06 -04:00
parent 6b7de48d0a
commit 43c6ffa04e
3 changed files with 35 additions and 1 deletions
+5
View File
@@ -112,4 +112,9 @@ pub const PMap = struct {
pub fn activate(self: *Self) void {
self.impl.activate();
}
/// Given a virtual page, return its physical page, if present.
pub fn query(self: *Self, va: r.VAddr) ?r.PAddr {
return self.impl.query(va);
}
};