__printk_cpu_sync_put(9)
π
__printk_cpu_sync_put β Kernel API Manual energy β¨
okay so bestie, we're deep in the kernel API manual rn and this one is literally the release the lock girlie π like she's the counterpart to all the grabbing, and she does NOT get enough hype. let's get into it π«Ά
β¨ NAME β¨
__printk_cpu_sync_put β releases the printk cpu-reentrant spinning lock. that's it. that's her whole job and she ate π
πΈ SYNOPSIS πΈ
void __printk_cpu_sync_put (void );
π¦ ARGUMENTS π¦
voidβ no arguments, bestie. zero. nada. she takes nothing and she gives you your lock back π
π DESCRIPTION π
so here's the vibe: the calling processor must be the owner of the lock. like, you cannot just roll up and call this if you're not the one holding it β that's not your lock to release, main character or not π
that's the whole description. short, iconic, no notes. β¨
π₯ CONTEXT π₯
any context, slay β she's flexible like that. but she expects interrupts to be disabled, so keep that in mind before you call her, okay? no cap. β
π SEE ALSO π
the whole friend group, fr fr β plus the kernel file ./kernel/printk/printk.c where all this lives π
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_wait(9)__printk_cpu_sync_try_get(9)
π reminder bestie: only the lock owner calls this. everyone else, hands off, iykyk π
and that's the page!! brought to you straight out of ./kernel/printk, stamped October 2026, version __printk_cpu_sync_put(9) β go forth and release your locks responsibly, 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