printk_kthreads_shutdown(9)
π printk_kthreads_shutdown β kernel API manual, but make it make sense
okay bestie, so you know how the kernel manual page header thing usually goes printk_kthreads_shutdown(9)? yeah. that's the name. that's the whole vibe. this is a section 9 kernel API joint, and it is so small and yet so important. buckle up π
β¨ NAME β¨
printk_kthreads_shutdown β shuts down all the threaded printers. every single one. no cap. π₯
πΈ SYNOPSIS πΈ
void printk_kthreads_shutdown (void *data );
that's it. that's the whole signature. she's tiny but she's doing the most π
π¦ ARGUMENTS π¦
dataβ the syscore context. that's literally what it is, a syscore context, okay? don't overthink her π«Ά
π DESCRIPTION π
okay so here's the tea β β when the system is shutting down, all threaded printers get stopped. like, every one.
and why do we care? because that lets printk transition back to atomic printing, which is lowkey genius because it gives you a robust mechanism so that your final shutdown/reboot messages actually make it out the door. like the last words of the machine get heard. main character energy for real πβ¨
ngl this is the "last call at the function" of kernel logging. everything's closing, but the goodbye note still gets printed. iconic.
π SEE ALSO π
Kernel file ./kernel/printk/printk.c β and honestly, the whole friend group:
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), 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_desc(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, that's the whole group chat, bestie. go say hi ππ
mwah π this lil page lives at source/version <code>./kernel/printk</code> and it was dated <code>October 2026</code> β that's the footer, that's the sign-off, we're done here, slay β¨π
π¦ 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