__printk_cpu_sync_wait(9)
π
__printk_cpu_sync_wait (9) β from the Kernel API Manual, bestie π
okay so this page is about __printk_cpu_sync_wait from the Kernel API Manual, and it's short but iconic, so let's get into it π
β¨ NAME β¨
__printk_cpu_sync_wait β literally just busy wait until the printk cpu-reentrant spinning lock is not owned by any CPU ππ
like, you're spinning. on purpose. until nobody owns that lock. that's the whole vibe check. no cap π
π¦ SYNOPSIS π¦
void __printk_cpu_sync_wait (void );
πΈ ARGUMENTS πΈ
voidβ no arguments π that's it. nothing to pass in. zero. zilch. the void is the argument and the argument is the void π
β CONTEXT β
Any context. yes bestie, any β every context, all of them, she's welcome everywhere πβ¨
π SEE ALSO π
so there's a whole friend group here, and we are NOT skipping a single one, iykyk π«Ά
The kernel file is ./kernel/printk/printk.c, and the crew is:
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_desc(9)kmsg_dump_get_line(9)kmsg_dump_get_buffer(9)kmsg_dump_rewind(9)console_try_replay_all(9)__printk_cpu_sync_try_get(9)__printk_cpu_sync_put(9)
like, that's the whole group chat and they all ate π₯
ngl, the name literally has wait in it twice-ish and it does exactly what it says: you wait. by spinning. in any context. slay but stay aware π§π
and that's the page!! mwah π sign-off time: this one lives in ./kernel/printk, dated October 2026, and it's __printk_cpu_sync_wait(9) all the way down βππ¦
π¦ 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