mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-31 23:38:21 +00:00
feat(mm): add query
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user