kmsg_dump_desc(9)
β¨ kmsg_dump_desc β¨
okay so bestie, welcome to the Kernel API Manual entry for kmsg_dump_desc(9) β yes it's a kernel function, yes it's a 9th-section manpage, yes we're gonna get through it together π
π NAME π
kmsg_dump_desc β dump the kernel log to the kernel message dumpers. that's it, that's the whole vibe. the kernel log goes out to everybody who signed up to receive it π€β¨
πΈ SYNOPSIS πΈ
void kmsg_dump_desc (enum kmsg_dump_reason reason , const char *desc );
like, literally just that. two args, no return, void girlie π
π¦ ARGUMENTS π¦
reasonβ the reason we're dumping at all (oops, panic, etc.). basically why we're having this moment πdescβ a short string describing what caused the panic or oops. and listen β it can beNULLif there's no additional description available. no desc, no problem, she still slays π«Ά
π DESCRIPTION π
so what actually happens? kmsg_dump_desc calls each of the registered dumper's dump callback. every single one. no skipping, bestie, we go through the whole list π₯
and those callbacks can then retrieve the kmsg records with kmsg_dump_get_line or kmsg_dump_get_buffer β those are the two ways to actually pull the data out, iykyk β¨
π SEE ALSO π
okay this list is long long, so buckle up. all of these live in the kernel file ./kernel/printk/printk.c β go say hi to the family π
console_list_lock(9)console_list_unlock(9)console_srcu_read_lock(9)console_srcu_read_unlock(9)console_lock_spinning_enable(9)console_lock_spinning_disable_and_check(9)console_trylock_spinning(9)printk_parse_prefix(9)add_preferred_console(9)match_devname_and_update_preferred_console(9)console_suspend_all(9)console_cpu_notify(9)console_lock(9)console_trylock(9)console_unlock(9)console_flush_on_panic(9)printk_kthreads_shutdown(9)console_force_preferred_locked(9)pr_flush(9)wake_up_klogd(9)defer_console_output(9)printk_trigger_flush(9)printk_timed_ratelimit(9)kmsg_dump_register(9)kmsg_dump_unregister(9)kmsg_dump_get_line(9)kmsg_dump_get_buffer(9)kmsg_dump_rewind(9)console_try_replay_all(9)__printk_cpu_sync_wait(9)__printk_cpu_sync_try_get(9)__printk_cpu_sync_put(9)
like I said. iconic lineup, no cap π
and that's the whole page, bestie!! this one came from ./kernel/printk and it's dated October 2026 β so go forth, dump those kernel logs, and remember: desc can be NULL and that's still valid πΈπβ¨ periodt.
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms