Home
last modified time | relevance | path

Searched refs:allocate (Results 1 – 18 of 18) sorted by relevance

/DragonOS/kernel/src/mm/allocator/
H A Dslab.rs33 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 Dpage_frame.rs311 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 Dkernel_allocator.rs37 .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 Dbump.rs132 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate() method
H A Dbuddy.rs579 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate() method
/DragonOS/docs/kernel/memory_management/
H A Dindex.rst13 allocate-memory
H A Dallocate-memory.md17 …在内核中创建一个新的页表,或者是在内核中创建一个新的地址空间。这时候,我们需要手动分配页帧。使用`LockedFrameAllocator`的`allocate()`函数,能够分配在物理地址上连续…
/DragonOS/kernel/crates/rust-slabmalloc/src/
H A Dlib.rs65 fn allocate(&mut self, layout: Layout) -> Result<NonNull<u8>, AllocationError>; in allocate() method
H A Dsc.rs201 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 Dzone.rs159 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 Dpages.rs218 fn allocate(&mut self, layout: Layout) -> *mut u8 { in allocate() method
/DragonOS/kernel/src/mm/
H A Dno_init.rs110 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate() method
H A Dpage.rs1290 let (phys, count) = self.frame_allocator.allocate(PageFrameCount::new( in map_huge_page()
/DragonOS/kernel/src/arch/riscv64/mm/
H A Dmod.rs350 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 Dmod.rs585 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 Dbpf.rs237 unsafe { LockedFrameAllocator.allocate(PageFrameCount::new(len / PAGE_SIZE)) } in do_mmap()
/DragonOS/kernel/src/ipc/
H A Dshm.rs163 unsafe { LockedFrameAllocator.allocate(page_count) }.ok_or(SystemError::EINVAL)?; in add()
/DragonOS/docs/community/ChangeLog/V0.1.x/
H A DV0.1.9.md1406 * allocate memory for vmcs with bug
1408 * allocate memory for vmcs