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