Skip to main content

KernelPrintState

Struct KernelPrintState 

Source
struct KernelPrintState {
    log_buf: [u8; 65535],
    log_head: usize,
    log_tail: usize,
    cursor_x: usize,
    cursor_y: usize,
}
Expand description

All mutable state for the kprint subsystem, protected by an IrqMutex.

Fields§

§log_buf: [u8; 65535]

Circular byte buffer holding the most recent log output.

§log_head: usize

Index of the next byte to write into log_buf.

§log_tail: usize

Index of the oldest readable byte in log_buf.

§cursor_x: usize§cursor_y: usize

Auto Trait Implementations§

§

impl Freeze for KernelPrintState

§

impl RefUnwindSafe for KernelPrintState

§

impl Send for KernelPrintState

§

impl Sync for KernelPrintState

§

impl Unpin for KernelPrintState

§

impl UnsafeUnpin for KernelPrintState

§

impl UnwindSafe for KernelPrintState

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.