Struct kalloc::cached::Allocator  [−][src]
pub struct Allocator<P> { /* fields omitted */ }Expand description
A thread-safe allocator with multiple buddy systems.
Implementations
impl<P: Unsigned + PowerOfTwo + 'static> Allocator<P>[src]
impl<P: Unsigned + PowerOfTwo + 'static> Allocator<P>[src]Trait Implementations
impl<P: Unsigned + PowerOfTwo + 'static> GlobalAlloc for Allocator<P>[src]
impl<P: Unsigned + PowerOfTwo + 'static> GlobalAlloc for Allocator<P>[src]unsafe fn alloc(&self, layout: Layout) -> *mut u8[src]
unsafe fn alloc(&self, layout: Layout) -> *mut u8[src]Allocate memory as described by the given layout. Read more
unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout)[src]
unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout)[src]Deallocate the block of memory at the given ptr pointer with the given layout. Read more