Expand description
Kernel panic handler
Constantsยง
- MAX_
PANIC_ ๐HOOKS
Staticsยง
- PANIC_
HOOKS ๐ - PANIC_
IN_ ๐PROGRESS
Functionsยง
- addr_
readable ๐ - collect_
backtrace ๐ - Dump backtrace via frame-pointer unwinding, returning the lines.
- collect_
panic_ ๐lines - Collect comprehensive debug info lines for the panic screen.
- install_
default_ panic_ hooks - Install the default panic hooks (serial context + backtrace dumps).
- panic_
handler - Main kernel panic handler.
- panic_
hook_ ๐dump_ context - Dump CPU/scheduler context to serial.
- panic_
in_ progress - Returns true if a kernel panic is currently in progress.
- panic_
serial_ ๐dump - Print all panic lines to the serial port (emergency mode already active).
- read_
cr_ ๐regs - Read CR0, CR2, CR3, CR4 into the provided mutable references.
- read_
rbp ๐ - read_
rsp ๐ - register_
panic_ hook - Register a function to be called during a panic (serial-only hooks).
- run_
panic_ ๐hooks - Run all registered panic hooks (serial output only : no framebuffer access).
Type Aliasesยง
- Panic
Hook ๐