__printk_cpu_sync_put(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __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 πŸ’œ


πŸŽ€ 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