Searched refs:KernelAllocator (Results 1 – 3 of 3) sorted by relevance
22 pub struct KernelAllocator; struct24 impl KernelAllocator { impl57 impl LocalAlloc for KernelAllocator { implementation82 unsafe impl GlobalAlloc for KernelAllocator { implementation
57 use crate::mm::allocator::kernel_allocator::KernelAllocator;68 pub static KERNEL_ALLOCATOR: KernelAllocator = KernelAllocator;
7   在默认情况下,KernelAllocator被绑定为全局内存分配器,它会根据请求分配的内存大小,自动选择使用slab还是伙伴分配器。因此,在内核中,使用Rust原生的