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 ๐Ÿ”’
dump_backtrace ๐Ÿ”’
Dump backtrace via frame-pointer unwinding, printing directly to serial.
dump_panic_info ๐Ÿ”’
Collect comprehensive debug info and print directly to serial (heap-safe).
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.
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 ๐Ÿ”’