Home
last modified time | relevance | path

Searched refs:slab (Results 1 – 10 of 10) sorted by relevance

/DragonOS/kernel/src/mm/allocator/
H A Dkernel_allocator.rs18 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()
H A Dmod.rs5 pub mod slab; module
H A Dslab.rs81 if let Some(ref mut slab) = SLABALLOCATOR { in slab_usage()
82 slab.zone.usage() in slab_usage()
/DragonOS/docs/kernel/memory_management/
H A Dallocate-memory.md3   本文将讲述如何在内核中进行内存分配。在开始之前,请您先了解一个基本点:DragonOS的内核使用4KB的页来管理内存,并且具有伙伴分配器和slab分配器。并且对用户空间、内核…
7   在默认情况下,KernelAllocator被绑定为全局内存分配器,它会根据请求分配的内存大小,自动选择使用slab还是伙伴分配器。因此,在内核中,使用Rust原生的
/DragonOS/kernel/crates/kdepends/
H A DCargo.toml13 …rors.dragonos.org.cn/DragonOS-Community/xarray", rev = "de93b57c34", features = ["slab-friendly"] }
/DragonOS/kernel/crates/rust-slabmalloc/src/
H A Dzone.rs119 let slab = &mut self.small_slabs[i]; in try_reclaim_base_pages() localVariable
121 let just_reclaimed = slab.try_reclaim_pages(to_reclaim, &mut dealloc); in try_reclaim_base_pages()
/DragonOS/kernel/src/mm/
H A Dinit.rs12 allocator::slab::slab_init,
/DragonOS/kernel/src/syscall/
H A Dmisc.rs4 mm::allocator::{page_frame::FrameAllocator, slab::slab_usage},
/DragonOS/docs/community/ChangeLog/V0.1.x/
H A DV0.1.10.md69 - 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 sysinfo
497 feat(mm): 添加slab内存分配器 (#683)
499 feat(mm): 添加slab内存分配器
H A DV0.1.0.md86 - 实现了slab分配器,用来分配小块的、具有对齐要求的内存