/DragonOS/docs/kernel/configuration/ |
H A D | config.md | 43 name = "allocator" 44 path = "src/mm/allocator/" 69 **src/mm/allocator/d.config** 73 name = "allocator"
|
/DragonOS/kernel/src/arch/riscv64/mm/ |
H A D | mod.rs | 10 allocator::{ 351 if let Some(ref mut allocator) = *INNER_ALLOCATOR.lock_irqsave() { in allocate() 352 return allocator.allocate(count); in allocate() 360 if let Some(ref mut allocator) = *INNER_ALLOCATOR.lock_irqsave() { in free() 361 return allocator.free(address, count); in free() 366 if let Some(ref mut allocator) = *INNER_ALLOCATOR.lock_irqsave() { in usage() 367 return allocator.usage(); in usage()
|
H A D | bump.rs | 1 use crate::mm::{allocator::bump::BumpAllocator, MemoryManagementArch, PhysMemoryArea};
|
H A D | init.rs | 17 allocator::{buddy::BuddyAllocator, bump::BumpAllocator, page_frame::FrameAllocator}, 163 unsafe fn set_inner_allocator(allocator: BuddyAllocator<MMArch>) { in set_inner_allocator() 171 *INNER_ALLOCATOR.lock() = Some(allocator); in set_inner_allocator()
|
/DragonOS/kernel/src/mm/allocator/ |
H A D | buddy.rs | 9 use crate::mm::allocator::bump::BumpAllocator; 10 use crate::mm::allocator::page_frame::{FrameAllocator, PageFrameCount, PageFrameUsage}; 101 let mut allocator = Self { in new() localVariable 143 allocator.buddy_free(PhysAddr::new(paddr), i as u8); in new() 154 allocator.buddy_free(PhysAddr::new(paddr), i as u8); in new() 170 allocator.buddy_free(PhysAddr::new(paddr), i as u8); in new() 181 allocator.total = total_memory; in new() 183 Some(allocator) in new()
|
H A D | bump.rs | 7 allocator::page_frame::{PhysPageFrame, PhysPageFrameIter},
|
/DragonOS/kernel/src/mm/ |
H A D | page.rs | 32 allocator::page_frame::{FrameAllocator, PageFrameCount}, 614 allocator: &mut impl FrameAllocator, in clone() 618 let phys = allocator.allocate_one()?; in clone() 634 let phys = allocator.allocate_one()?; in clone() 663 let table = next_table.clone(allocator, copy_on_write)?; in clone() 725 super::allocator::page_frame::PhysPageFrame::from_ppn(ppn).phys_address() in address() 1118 pub unsafe fn new(table_kind: PageTableKind, table_paddr: PhysAddr, allocator: F) -> Self { in new() 1122 frame_allocator: allocator, in new() 1128 pub unsafe fn create(table_kind: PageTableKind, mut allocator: F) -> Option<Self> { in create() 1129 let table_paddr = allocator.allocate_one()?; in create() [all …]
|
H A D | init.rs | 12 allocator::slab::slab_init,
|
H A D | kernel_mapper.rs | 11 mm::{allocator::page_frame::PageFrameCount, MMArch, MemoryManagementArch},
|
H A D | early_ioremap.rs | 12 use super::{allocator::page_frame::PageFrameCount, MemoryManagementArch, PhysAddr, VirtAddr};
|
H A D | fault.rs | 24 allocator::page_frame::FrameAllocator, 656 let allocator = mapper.allocator_mut(); in filemap_fault() localVariable 659 let new_cache_page = allocator.allocate_one().unwrap(); in filemap_fault()
|
H A D | no_init.rs | 21 allocator::page_frame::{FrameAllocator, PageFrameCount, PageFrameUsage},
|
H A D | mod.rs | 17 allocator::page_frame::{VirtPageFrame, VirtPageFrameIter}, 23 pub mod allocator; module
|
H A D | syscall.rs | 17 allocator::page_frame::{PageFrameCount, VirtPageFrame},
|
/DragonOS/kernel/src/arch/x86_64/mm/ |
H A D | mod.rs | 20 use crate::mm::allocator::page_frame::{FrameAllocator, PageFrameCount, PageFrameUsage}; 25 mm::allocator::{buddy::BuddyAllocator, bump::BumpAllocator}, 653 if let Some(ref mut allocator) = *INNER_ALLOCATOR.lock_irqsave() { in allocate() 654 return allocator.allocate(count); in allocate() 662 if let Some(ref mut allocator) = *INNER_ALLOCATOR.lock_irqsave() { in free() 663 return allocator.free(address, count); in free() 668 if let Some(ref mut allocator) = *INNER_ALLOCATOR.lock_irqsave() { in usage() 669 return allocator.usage(); in usage() 691 unsafe fn set_inner_allocator(allocator: BuddyAllocator<MMArch>) { in set_inner_allocator() 699 *INNER_ALLOCATOR.lock() = Some(allocator); in set_inner_allocator()
|
H A D | bump.rs | 4 allocator::bump::BumpAllocator,
|
/DragonOS/kernel/src/driver/net/ |
H A D | dma.rs | 8 allocator::page_frame::{
|
/DragonOS/docs/community/code_contribution/ |
H A D | conventional-commit.md | 10 …l/src/driver/net`中的特性追加,那么应当命名为`feat(driver/net):`,如果是发生在`kernel/src/mm/allocator`中,应当命名为`feat(mm)…
|
/DragonOS/kernel/src/syscall/ |
H A D | misc.rs | 4 mm::allocator::{page_frame::FrameAllocator, slab::slab_usage},
|
/DragonOS/kernel/src/driver/virtio/ |
H A D | virtio_impl.rs | 8 allocator::page_frame::{
|
/DragonOS/kernel/src/ |
H A D | lib.rs | 95 use crate::mm::allocator::kernel_allocator::KernelAllocator;
|
/DragonOS/kernel/src/driver/firmware/efi/ |
H A D | init.rs | 15 allocator::page_frame::PhysPageFrame, early_ioremap::EarlyIoRemap,
|
/DragonOS/docs/community/ChangeLog/V0.1.x/ |
H A D | V0.1.1.md | 268 * 实现了全局的allocator
|
/DragonOS/kernel/src/perf/ |
H A D | bpf.rs | 10 use crate::mm::allocator::page_frame::{FrameAllocator, PageFrameCount, PhysPageFrame};
|
/DragonOS/kernel/src/ipc/ |
H A D | syscall.rs | 22 allocator::page_frame::{PageFrameCount, PhysPageFrame, VirtPageFrame},
|