Searched refs:slab (Results 1 – 10 of 10) sorted by relevance
18 slab::{slab_init_state, SLABALLOCATOR},72 if let Some(ref mut slab) = SLABALLOCATOR { in local_alloc()73 return slab.allocate(layout); in local_alloc()90 if let Some(ref mut slab) = SLABALLOCATOR { in local_alloc_zeroed()91 return slab.allocate(layout); in local_alloc_zeroed()100 } else if let Some(ref mut slab) = SLABALLOCATOR { in local_dealloc()101 slab.deallocate(ptr, layout).unwrap() in local_dealloc()
5 pub mod slab; module
81 if let Some(ref mut slab) = SLABALLOCATOR { in slab_usage()82 slab.zone.usage() in slab_usage()
3   本文将讲述如何在内核中进行内存分配。在开始之前,请您先了解一个基本点:DragonOS的内核使用4KB的页来管理内存,并且具有伙伴分配器和slab分配器。并且对用户空间、内核…7   在默认情况下,KernelAllocator被绑定为全局内存分配器,它会根据请求分配的内存大小,自动选择使用slab还是伙伴分配器。因此,在内核中,使用Rust原生的
13 …rors.dragonos.org.cn/DragonOS-Community/xarray", rev = "de93b57c34", features = ["slab-friendly"] }
119 let slab = &mut self.small_slabs[i]; in try_reclaim_base_pages() localVariable121 let just_reclaimed = slab.try_reclaim_pages(to_reclaim, &mut dealloc); in try_reclaim_base_pages()
12 allocator::slab::slab_init,
4 mm::allocator::{page_frame::FrameAllocator, slab::slab_usage},
69 - feat(mm): 添加slab内存分配器 (#683)95 - feat(mm): add slab usage calculation (#768)240 feat(mm): add slab usage calculation (#768)242 * Add slab free space calculation and add it to freeram of sysinfo497 feat(mm): 添加slab内存分配器 (#683)499 feat(mm): 添加slab内存分配器
86 - 实现了slab分配器,用来分配小块的、具有对齐要求的内存