defer_console_output(9)
π defer_console_output(9) β Kernel API Manual β¨
okay bestie, welcome to the defer_console_output(9) page, live from the Kernel API Manual π this one's short but she's important, so likeβ¦ pay attention, iykyk π
πΈ NAME πΈ
defer_console_output β wake the kernel logging daemon and trigger console printing in a deferred context π¦
β¨ SYNOPSIS β¨
void defer_console_output (void );
like, that's the whole thing. she's a void girlie with no args. periodt π
π ARGUMENTS π
voidβ no arguments. literally none. zero. nada. she takes nothing and she gives you console output, iconic honestly π
π« DESCRIPTION π«
okay so here's the vibe π use this function when new records have been added to the ringbuffer, and this context is the one responsible for console printing those records β but the current context is not allowed to perform the console printing π
so what do you do? you trigger an irq_work context to do the console printing for you, bestie. that's the whole move β¨
oh and it's not just the printing β this function also wakes the logging daemon π like a little two-for-one deal, we love a multitasker π«Ά
π₯ CONTEXT π₯
Any context. yeah. any. she's flexible like that π
π SEE ALSO π
Kernel file ./kernel/printk/printk.c β and honestly, the whole printk friend group showed up for this one, so let's give them their moment π
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)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 entire group chat and they all ate ππ₯
and that's the page bestie!! π this lil beauty lives in ./kernel/printk and the manual's dated October 2026, filed under defer_console_output(9) β mwah, go forth and defer that console output responsibly π§π
π¦ 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