Struct main::kernel::mm::allocator::Alloc [collapse all] [expand all] [src]

pub struct Alloc {
    pub parent: BuddyAlloc,
    pub base: *mut u8,
    pub el_size: uint,
}

Fields

parent
base
el_size

Methods

impl Alloc

fn new(parent: BuddyAlloc, base: *mut u8, el_size: uint) -> Alloc

Trait Implementations

impl Allocator for Alloc

fn alloc(&mut self, size: uint) -> (*mut u8, uint)

fn free(&mut self, ptr: *mut u8)

fn zero_alloc(&mut self, s: uint) -> (*mut u8, uint)

fn realloc(&mut self, src: *mut u8, size: uint) -> (*mut u8, uint)