Home
last modified time | relevance | path

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

12

/DragonOS/docs/kernel/configuration/
H A Dconfig.md43 name = "allocator"
44 path = "src/mm/allocator/"
69 **src/mm/allocator/d.config**
73 name = "allocator"
/DragonOS/kernel/src/arch/riscv64/mm/
H A Dmod.rs10 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 Dbump.rs1 use crate::mm::{allocator::bump::BumpAllocator, MemoryManagementArch, PhysMemoryArea};
H A Dinit.rs17 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 Dbuddy.rs9 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 Dbump.rs7 allocator::page_frame::{PhysPageFrame, PhysPageFrameIter},
/DragonOS/kernel/src/mm/
H A Dpage.rs32 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 Dinit.rs12 allocator::slab::slab_init,
H A Dkernel_mapper.rs11 mm::{allocator::page_frame::PageFrameCount, MMArch, MemoryManagementArch},
H A Dearly_ioremap.rs12 use super::{allocator::page_frame::PageFrameCount, MemoryManagementArch, PhysAddr, VirtAddr};
H A Dfault.rs24 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 Dno_init.rs21 allocator::page_frame::{FrameAllocator, PageFrameCount, PageFrameUsage},
H A Dmod.rs17 allocator::page_frame::{VirtPageFrame, VirtPageFrameIter},
23 pub mod allocator; module
H A Dsyscall.rs17 allocator::page_frame::{PageFrameCount, VirtPageFrame},
/DragonOS/kernel/src/arch/x86_64/mm/
H A Dmod.rs20 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 Dbump.rs4 allocator::bump::BumpAllocator,
/DragonOS/kernel/src/driver/net/
H A Ddma.rs8 allocator::page_frame::{
/DragonOS/docs/community/code_contribution/
H A Dconventional-commit.md10 …l/src/driver/net`中的特性追加,那么应当命名为`feat(driver/net):`,如果是发生在`kernel/src/mm/allocator`中,应当命名为`feat(mm)…
/DragonOS/kernel/src/syscall/
H A Dmisc.rs4 mm::allocator::{page_frame::FrameAllocator, slab::slab_usage},
/DragonOS/kernel/src/driver/virtio/
H A Dvirtio_impl.rs8 allocator::page_frame::{
/DragonOS/kernel/src/
H A Dlib.rs95 use crate::mm::allocator::kernel_allocator::KernelAllocator;
/DragonOS/kernel/src/driver/firmware/efi/
H A Dinit.rs15 allocator::page_frame::PhysPageFrame, early_ioremap::EarlyIoRemap,
/DragonOS/docs/community/ChangeLog/V0.1.x/
H A DV0.1.1.md268 * 实现了全局的allocator
/DragonOS/kernel/src/perf/
H A Dbpf.rs10 use crate::mm::allocator::page_frame::{FrameAllocator, PageFrameCount, PhysPageFrame};
/DragonOS/kernel/src/ipc/
H A Dsyscall.rs22 allocator::page_frame::{PageFrameCount, PhysPageFrame, VirtPageFrame},

12