[][src]Struct sunrise_kernel::frame_allocator::i386::FrameAllocatori386

pub struct FrameAllocatori386 {
    memory_bitmap: [u8; 4],
    initialized: bool,
}

A frame allocator backed up by a giant bitmap.

Fields

memory_bitmap: [u8; 4]

A big bitmap denoting for every frame if it is free or not

1 is free, 0 is already allocated/reserved This may seem backward, but this way when we start the array is filled with 0(reserved) and it can be put in the bss by the compiler

initialized: bool

All operations have to check that the Allocator has been initialized

Implementations

impl FrameAllocatori386[src]

pub const fn new() -> Self[src]

Called to initialize the FRAME_ALLOCATOR global.

Auto Trait Implementations

impl RefUnwindSafe for FrameAllocatori386

impl Send for FrameAllocatori386

impl Sync for FrameAllocatori386

impl Unpin for FrameAllocatori386

impl UnwindSafe for FrameAllocatori386

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.