MCPcopy Create free account
hub / github.com/chyyuu/os_kernel_lab / frame_alloc

Function frame_alloc

os/src/mm/frame_allocator.rs:100–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 5

dma_allocMethod · 0.85
map_oneMethod · 0.85
frame_allocator_testFunction · 0.85
newMethod · 0.85
find_pte_createMethod · 0.85

Calls 3

exclusive_accessMethod · 0.80
mapMethod · 0.45
allocMethod · 0.45

Tested by

no test coverage detected