Skip to main content

Module panic

Module panic 

Source
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ยง

PanicHook ๐Ÿ”’