Home
last modified time | relevance | path

Searched refs:LockedFrameAllocator (Results 1 – 5 of 5) sorted by relevance

/DragonOS-0.1.8/docs/kernel/memory_management/
Dallocate-memory.md17 …们需要手动分配页帧。例如,我们需要在内核中创建一个新的页表,或者是在内核中创建一个新的地址空间。这时候,我们需要手动分配页帧。使用`LockedFrameAllocator`的`allocate(…
19   当需要释放页帧的时候,使用`LockedFrameAllocator`的`deallocate()`函数,或者是`deallocate_page_frames()`函数,能够…
/DragonOS-0.1.8/kernel/src/mm/allocator/
Dkernel_allocator.rs2 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()
Dpage_frame.rs7 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/
Dkernel_mapper.rs4 mm::{LockedFrameAllocator, PageMapper},
64 let mapper = unsafe { PageMapper::current(PageTableKind::Kernel, LockedFrameAllocator) }; in lock()
/DragonOS-0.1.8/kernel/src/arch/x86_64/mm/
Dmod.rs38 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