/DragonOS/kernel/src/mm/allocator/ |
H A D | slab.rs | 33 pub(crate) unsafe fn allocate(&mut self, layout: Layout) -> *mut u8 { in allocate() method 34 match self.zone.allocate(layout) { in allocate() 43 .allocate(layout) in allocate()
|
H A D | page_frame.rs | 311 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)>; in allocate() method 317 return self.allocate(PageFrameCount::new(1)).map(|(addr, _)| addr); in allocate_one() 329 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate() method 330 return T::allocate(self, count); in allocate() 350 let frame = unsafe { LockedFrameAllocator.allocate(count)? }; in allocate_page_frames()
|
H A D | kernel_allocator.rs | 37 .allocate(page_frame_count) in alloc_in_buddy() 73 return slab.allocate(layout); in local_alloc() 91 return slab.allocate(layout); in local_alloc_zeroed()
|
H A D | bump.rs | 132 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate() method
|
H A D | buddy.rs | 579 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate() method
|
/DragonOS/docs/kernel/memory_management/ |
H A D | index.rst | 13 allocate-memory
|
H A D | allocate-memory.md | 17 …在内核中创建一个新的页表,或者是在内核中创建一个新的地址空间。这时候,我们需要手动分配页帧。使用`LockedFrameAllocator`的`allocate()`函数,能够分配在物理地址上连续…
|
/DragonOS/kernel/crates/rust-slabmalloc/src/ |
H A D | lib.rs | 65 fn allocate(&mut self, layout: Layout) -> Result<NonNull<u8>, AllocationError>; in allocate() method
|
H A D | sc.rs | 201 let ptr = slab_page.allocate(sc_layout); in try_allocate_from_pagelist() 262 pub fn allocate(&mut self, layout: Layout) -> Result<NonNull<u8>, AllocationError> { in allocate() method 282 let ptr = empty_page.allocate(layout); in allocate()
|
H A D | zone.rs | 159 fn allocate(&mut self, layout: Layout) -> Result<NonNull<u8>, AllocationError> { in allocate() method 161 Slab::Base(idx) => self.small_slabs[idx].allocate(layout), in allocate()
|
H A D | pages.rs | 218 fn allocate(&mut self, layout: Layout) -> *mut u8 { in allocate() method
|
/DragonOS/kernel/src/mm/ |
H A D | no_init.rs | 110 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate() method
|
H A D | page.rs | 1290 let (phys, count) = self.frame_allocator.allocate(PageFrameCount::new( in map_huge_page()
|
/DragonOS/kernel/src/arch/riscv64/mm/ |
H A D | mod.rs | 350 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate() method 352 return allocator.allocate(count); in allocate()
|
/DragonOS/kernel/src/arch/x86_64/mm/ |
H A D | mod.rs | 585 unsafe { LockedFrameAllocator.allocate(random_size).unwrap() }; in test_buddy() 651 unsafe fn allocate(&mut self, mut count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate() method 654 return allocator.allocate(count); in allocate()
|
/DragonOS/kernel/src/perf/ |
H A D | bpf.rs | 237 unsafe { LockedFrameAllocator.allocate(PageFrameCount::new(len / PAGE_SIZE)) } in do_mmap()
|
/DragonOS/kernel/src/ipc/ |
H A D | shm.rs | 163 unsafe { LockedFrameAllocator.allocate(page_count) }.ok_or(SystemError::EINVAL)?; in add()
|
/DragonOS/docs/community/ChangeLog/V0.1.x/ |
H A D | V0.1.9.md | 1406 * allocate memory for vmcs with bug 1408 * allocate memory for vmcs
|