Searched refs:LockedFrameAllocator (Results 1 – 5 of 5) sorted by relevance
/DragonOS-0.1.8/docs/kernel/memory_management/ |
D | allocate-memory.md | 17 …们需要手动分配页帧。例如,我们需要在内核中创建一个新的页表,或者是在内核中创建一个新的地址空间。这时候,我们需要手动分配页帧。使用`LockedFrameAllocator`的`allocate(… 19   当需要释放页帧的时候,使用`LockedFrameAllocator`的`deallocate()`函数,或者是`deallocate_page_frames()`函数,能够…
|
/DragonOS-0.1.8/kernel/src/mm/allocator/ |
D | kernel_allocator.rs | 2 arch::mm::LockedFrameAllocator, 29 let (phy_addr, allocated_frame_count) = LockedFrameAllocator in alloc_in_buddy() 52 LockedFrameAllocator.free(phy_addr, page_frame_count); in free_in_buddy()
|
D | page_frame.rs | 7 arch::{mm::LockedFrameAllocator, MMArch}, 326 let frame = unsafe { LockedFrameAllocator.allocate(count)? }; in allocate_page_frames() 336 LockedFrameAllocator.free(frame.phys_address(), count); in deallocate_page_frames()
|
/DragonOS-0.1.8/kernel/src/mm/ |
D | kernel_mapper.rs | 4 mm::{LockedFrameAllocator, PageMapper}, 64 let mapper = unsafe { PageMapper::current(PageTableKind::Kernel, LockedFrameAllocator) }; in lock()
|
/DragonOS-0.1.8/kernel/src/arch/x86_64/mm/ |
D | mod.rs | 38 crate::mm::page::PageMapper<crate::arch::x86_64::mm::X86_64MMArch, LockedFrameAllocator>; 205 let new_umapper: crate::mm::page::PageMapper<X86_64MMArch, LockedFrameAllocator> = unsafe { in setup_new_usermapper() 206 PageMapper::create(PageTableKind::User, LockedFrameAllocator) in setup_new_usermapper() 464 unsafe { LockedFrameAllocator.allocate(random_size).unwrap() }; in test_buddy() 501 unsafe { LockedFrameAllocator.free(paddr, allocated_frame_count) }; in test_buddy() 516 unsafe { LockedFrameAllocator.free(paddr, allocated_frame_count) }; in test_buddy() 526 pub struct LockedFrameAllocator; struct 528 impl FrameAllocator for LockedFrameAllocator { implementation
|