/DragonOS-0.1.8/kernel/src/mm/allocator/ |
D | page_frame.rs | 113 pub fn add(&self, n: PageFrameCount) -> Self { in add() 154 pub struct PageFrameCount(usize); struct 156 impl PageFrameCount { impl 183 impl Add for PageFrameCount { implementation 191 impl AddAssign for PageFrameCount { implementation 197 impl Sub for PageFrameCount { implementation 205 impl SubAssign for PageFrameCount { implementation 211 impl Mul for PageFrameCount { implementation 219 impl Add<usize> for PageFrameCount { implementation 227 impl AddAssign<usize> for PageFrameCount { implementation [all …]
|
D | bump.rs | 5 use super::page_frame::{FrameAllocator, PageFrameCount, PageFrameUsage}; 47 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate() argument 82 unsafe fn free(&mut self, _address: PhysAddr, _count: PageFrameCount) { in free() argument 109 let frame = PageFrameUsage::new(PageFrameCount::new(used), PageFrameCount::new(total)); in usage()
|
D | kernel_allocator.rs | 13 use super::page_frame::{FrameAllocator, PageFrameCount}; 28 let page_frame_count = PageFrameCount::new(count); in alloc_in_buddy() 50 let page_frame_count = PageFrameCount::new(count); in free_in_buddy()
|
D | buddy.rs | 8 use crate::mm::allocator::page_frame::{FrameAllocator, PageFrameCount, PageFrameUsage}; 407 fn buddy_alloc(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in buddy_alloc() argument 428 .map(|addr| (addr, PageFrameCount::new(1 << (order as usize - MIN_ORDER)))); in buddy_alloc() 499 self.buddy_alloc(PageFrameCount::new(1)) in buddy_free() 636 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate() argument 650 unsafe fn free(&mut self, base: PhysAddr, count: PageFrameCount) { in free() argument
|
/DragonOS-0.1.8/kernel/src/mm/ |
D | no_init.rs | 15 allocator::page_frame::{FrameAllocator, PageFrameCount, PageFrameUsage}, 35 unsafe fn allocate(&mut self, _count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate() argument 39 unsafe fn free(&mut self, _address: PhysAddr, _count: PageFrameCount) { in free() argument 57 pub unsafe fn pseudo_map_phys(vaddr: VirtAddr, paddr: PhysAddr, count: PageFrameCount) { in pseudo_map_phys() argument
|
D | syscall.rs | 14 allocator::page_frame::{PageFrameCount, VirtPageFrame}, 183 let page_count = PageFrameCount::new(len / MMArch::PAGE_SIZE); in munmap() 218 let page_count = PageFrameCount::new(len / MMArch::PAGE_SIZE); in mprotect()
|
D | c_adapter.rs | 18 allocator::page_frame::PageFrameCount, kernel_mapper::KernelMapper, no_init::pseudo_map_phys, 32 let count = PageFrameCount::new(page_align_up(size) / MMArch::PAGE_SIZE); in rs_pseudo_map_phys() 41 let count = PageFrameCount::new(page_align_up(size) / MMArch::PAGE_SIZE); in rs_map_phys()
|
D | kernel_mapper.rs | 9 mm::allocator::page_frame::PageFrameCount, 110 let count = PageFrameCount::new(page_align_up(size) / MMArch::PAGE_SIZE); in map_phys_with_size()
|
D | ucontext.rs | 31 deallocate_page_frames, PageFrameCount, PhysPageFrame, VirtPageFrame, VirtPageFrameIter, 172 PageFrameCount::new(vma_guard.region.size() / MMArch::PAGE_SIZE), in try_clone() 267 PageFrameCount::from_bytes(len).unwrap(), in map_anonymous() 298 PageFrameCount, in mmap() argument 306 page_count: PageFrameCount, in mmap() argument 311 if page_count == PageFrameCount::new(0) { in mmap() 370 page_count: PageFrameCount, in munmap() argument 406 page_count: PageFrameCount, in mprotect() argument 525 PageFrameCount::from_bytes(unmap_len).unwrap(), in set_brk() 579 PageFrameCount::new(1), in drop() [all …]
|
/DragonOS-0.1.8/kernel/src/driver/virtio/ |
D | virtio_impl.rs | 9 allocate_page_frames, deallocate_page_frames, PageFrameCount, PhysPageFrame, 25 let page_num = PageFrameCount::new( in dma_alloc() 57 let page_count = PageFrameCount::new( in dma_dealloc()
|
/DragonOS-0.1.8/kernel/src/arch/x86_64/mm/ |
D | mod.rs | 17 use crate::mm::allocator::page_frame::{FrameAllocator, PageFrameCount}; 443 let mut v: Vec<(PhysAddr, PageFrameCount)> = Vec::with_capacity(60 * 1024); in test_buddy() 461 let random_size = PageFrameCount::from_bytes(random_size.next_power_of_two()).unwrap(); in test_buddy() 531 count: crate::mm::allocator::page_frame::PageFrameCount, in allocate() argument 532 ) -> Option<(PhysAddr, PageFrameCount)> { in allocate() argument 543 count: crate::mm::allocator::page_frame::PageFrameCount, in free() argument
|
/DragonOS-0.1.8/kernel/src/libs/ |
D | elf.rs | 17 allocator::page_frame::{PageFrameCount, VirtPageFrame}, 235 PageFrameCount::from_bytes(to_unmap_size).unwrap(), in load_elf_segment() 248 PageFrameCount::from_bytes(page_align_up(map_size)).unwrap(), in load_elf_segment() 274 PageFrameCount::from_bytes(page_align_up(map_size)).unwrap(), in load_elf_segment()
|