Skip to main content

Module state

Module state 

Source
Expand description

kprint State, lives in KSTATE

Authors: MarioS271

Re-exportsยง

use super::ringbuffer::Ringbuffer; ๐Ÿ”’
use crate::kprint::log_entry::LogLevel; ๐Ÿ”’
use crate::lib::macros::bitflags::bitflags; ๐Ÿ”’
use crate::lib::sync::irq_mutex::IrqMutex; ๐Ÿ”’
use crate::lib::sync::irq_mutex::IrqMutexGuard; ๐Ÿ”’
use core::sync::atomic::AtomicU8; ๐Ÿ”’
use core::sync::atomic::Ordering; ๐Ÿ”’

Structsยง

BasicFbState
A struct which holds the basic FB state (cursor position)
KPrint
A struct which goes into KSTATE and contains an IrqMutex wrapped KPrintState and the current max_log_level and log_targets as [AtomicU8]s
KPrintConfig
Holds the kernel log configs like max log level and log targets
KPrintState
Inner, mutex-protected struct in KPrint; holds the kernel Ringbuffer aswell as the current BasicFbState
LogTargets
Where to log kernel logs from the kprint subsystem