ZXFoundation™ 26h2
Loading...
Searching...
No Matches
zxfoundation.sys.printk.types Module Reference

Data Structures

struct  zxfoundation::sys::printk::printk_backend
 Interface for a logging backend. More...

Enumerations

enum class  log_level : u8 {
  EMERG = 0 , ALERT = 1 , CRIT = 2 , ERROR = 3 ,
  WARN = 4 , NOTICE = 5 , INFO = 6 , VERBOSE = 8
}
 Log levels for the kernel logging system.

Variables

bool active {false}
 Is this backend currently active?
auto(* emit )(std::string_view s) noexcept -> void
 Emit a formatted string to the backend.
auto(* init )() noexcept -> void
 Optional initialization for the backend.
constexpr usize zxfoundation::sys::printk::LOG_BUFFER_SIZE = 128 * 1024
constexpr usize zxfoundation::sys::printk::MAX_BACKENDS = 4
std::string_view name {}
 Backend name for identification.
constexpr usize zxfoundation::sys::printk::PRINTK_LINE_MAX = 512

Files

file  zxfoundation/sys/printk.zcomponent/types.cxxm