Home
last modified time | relevance | path

Searched refs:KernelAllocator (Results 1 – 3 of 3) sorted by relevance

/DragonOS/kernel/src/
H A Dlib.rs90 use crate::mm::allocator::kernel_allocator::KernelAllocator;
103 pub static KERNEL_ALLOCATOR: KernelAllocator = KernelAllocator;
/DragonOS/kernel/src/mm/allocator/
H A Dkernel_allocator.rs29 pub struct KernelAllocator; struct
31 impl KernelAllocator { implementation
64 impl LocalAlloc for KernelAllocator { implementation
107 unsafe impl GlobalAlloc for KernelAllocator { implementation
/DragonOS/docs/kernel/memory_management/
H A Dallocate-memory.md7   在默认情况下,KernelAllocator被绑定为全局内存分配器,它会根据请求分配的内存大小,自动选择使用slab还是伙伴分配器。因此,在内核中,使用Rust原生的