Home
last modified time | relevance | path

Searched refs:dealloc (Results 1 – 4 of 4) sorted by relevance

/DragonOS/kernel/crates/rust-slabmalloc/src/
H A Dzone.rs114 pub fn try_reclaim_base_pages<F>(&mut self, mut to_reclaim: usize, mut dealloc: F) in try_reclaim_base_pages()
121 let just_reclaimed = slab.try_reclaim_pages(to_reclaim, &mut dealloc); in try_reclaim_base_pages()
H A Dsc.rs223 pub fn try_reclaim_pages<F>(&mut self, to_reclaim: usize, dealloc: &mut F) -> usize in try_reclaim_pages()
231 dealloc(page as *mut P); in try_reclaim_pages()
/DragonOS/kernel/src/libs/
H A Dalign.rs89 KERNEL_ALLOCATOR.dealloc(self.inner.as_ptr().cast(), Self::LAYOUT); in drop()
/DragonOS/kernel/src/mm/allocator/
H A Dkernel_allocator.rs128 unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) { in dealloc() method