()
| 98 | } |
| 99 | |
| 100 | pub fn frame_alloc() -> Option<FrameTracker> { |
| 101 | FRAME_ALLOCATOR |
| 102 | .exclusive_access() |
| 103 | .alloc() |
| 104 | .map(FrameTracker::new) |
| 105 | } |
| 106 | |
| 107 | pub fn frame_dealloc(ppn: PhysPageNum) { |
| 108 | FRAME_ALLOCATOR.exclusive_access().dealloc(ppn); |
no test coverage detected