Expand description
Kernel Writer, locks the logging state (ringbuffer, basic fb state, โฆ), collects text, builds log entry, writes it and dispatches the full log message to receivers
Authors: MarioS271
Re-exportsยง
use crate::kprint::log_entry::LogFlags;๐use crate::kprint::log_entry::LogLevel;๐use crate::kprint::receivers::KPrintReceiver;๐use crate::kprint::state::KPrintState;๐use crate::kprint::state::LogTargets;๐use crate::lib::sync::irq_mutex::IrqMutexGuard;๐use crate::state::kstate::KSTATE;๐use core::fmt::Write;๐
Structsยง
- Kernel
Writer - Wrapper that holds the acquired
Ringbufferguard and a buffer in which [core::fmt::write] calls get written, which then gets written to the ring buffer
Constantsยง
- WRITE_
BUFFER_ SIZE - Size of the intermediary log buffer (2 KiB)