Home
last modified time | relevance | path

Searched refs:allocator (Results 1 – 13 of 13) sorted by relevance

/DragonOS-0.1.8/kernel/src/arch/x86_64/mm/
Dmod.rs17 use crate::mm::allocator::page_frame::{FrameAllocator, PageFrameCount};
21 mm::allocator::{buddy::BuddyAllocator, bump::BumpAllocator},
531 count: crate::mm::allocator::page_frame::PageFrameCount, in allocate()
533 if let Some(ref mut allocator) = *INNER_ALLOCATOR.lock_irqsave() { in allocate()
534 return allocator.allocate(count); in allocate()
543 count: crate::mm::allocator::page_frame::PageFrameCount, in free()
546 if let Some(ref mut allocator) = *INNER_ALLOCATOR.lock_irqsave() { in free()
547 return allocator.free(address, count); in free()
551 unsafe fn usage(&self) -> crate::mm::allocator::page_frame::PageFrameUsage { in usage()
571 unsafe fn set_inner_allocator(allocator: BuddyAllocator<MMArch>) { in set_inner_allocator()
[all …]
/DragonOS-0.1.8/kernel/src/mm/
Dpage.rs16 allocator::page_frame::FrameAllocator, syscall::ProtFlags, MemoryManagementArch, PageTableKind,
485 pub unsafe fn new(table_kind: PageTableKind, table_paddr: PhysAddr, allocator: F) -> Self { in new()
489 frame_allocator: allocator, in new()
495 pub unsafe fn create(table_kind: PageTableKind, mut allocator: F) -> Option<Self> { in create()
496 let table_paddr = allocator.allocate_one()?; in create()
500 return Some(Self::new(table_kind, table_paddr, allocator)); in create()
505 pub unsafe fn current(table_kind: PageTableKind, allocator: F) -> Self { in current()
507 return Self::new(table_kind, table_paddr, allocator); in current()
759 allocator: &mut impl FrameAllocator, in unmap_phys_inner()
773 let result = unmap_phys_inner(vaddr, &mut subtable, unmap_parents, allocator)?; in unmap_phys_inner()
[all …]
Dno_init.rs15 allocator::page_frame::{FrameAllocator, PageFrameCount, PageFrameUsage},
Dkernel_mapper.rs9 mm::allocator::page_frame::PageFrameCount,
Dsyscall.rs14 allocator::page_frame::{PageFrameCount, VirtPageFrame},
Dc_adapter.rs18 allocator::page_frame::PageFrameCount, kernel_mapper::KernelMapper, no_init::pseudo_map_phys,
Dmod.rs19 allocator::page_frame::{VirtPageFrame, VirtPageFrameIter},
24 pub mod allocator; module
Ducontext.rs30 allocator::page_frame::{
/DragonOS-0.1.8/kernel/src/
Dlib.rs57 use crate::mm::allocator::kernel_allocator::KernelAllocator;
/DragonOS-0.1.8/kernel/src/driver/virtio/
Dvirtio_impl.rs8 allocator::page_frame::{
/DragonOS-0.1.8/kernel/src/mm/allocator/
Dbuddy.rs7 use crate::mm::allocator::bump::BumpAllocator;
8 use crate::mm::allocator::page_frame::{FrameAllocator, PageFrameCount, PageFrameUsage};
231 let allocator = Self { in new() localVariable
236 Some(allocator) in new()
/DragonOS-0.1.8/docs/community/ChangeLog/V0.1.x/
DV0.1.1.md268 * 实现了全局的allocator
/DragonOS-0.1.8/kernel/src/libs/
Delf.rs17 allocator::page_frame::{PageFrameCount, VirtPageFrame},