console_cpu_notify(9)
π console_cpu_notify(9) β NAME π
okay so this is console_cpu_notify(9), straight outta the Kernel API Manual, and it has exactly one job: print deferred console messages after CPU hotplug. periodt. π
β¨ SYNOPSIS β¨
int console_cpu_notify (unsigned int cpu );
πΈ ARGUMENTS πΈ
cpuβ unused. literally just vibing there, no cap. π
π¦ DESCRIPTION π¦
okay bestie, here's the tea: if printk is called from a CPU that is not online yet, the messages will be printed on the console only if there are CON_ANYTIME consoles. π«Ά
This function is called when a new CPU comes online (or fails to come up) or goes offline. that's the whole vibe check. π
π₯ SEE ALSO π₯
the kernel file ./kernel/printk/printk.c is home base, and here's the full friend group β every single one invited, no skipping:
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_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_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)
that's the page, bestie π this was console_cpu_notify(9), sourced from ./kernel/printk, dated October 2026. mwah π
π¦ 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