hwspin_unlock_in_atomic(9)
π hwspin_unlock_in_atomic β like, the Kernel API Manual page, bestie β¨
Okay so we're in the Kernel API Manual today and the icon we're stanning is hwspin_unlock_in_atomic(9). Yes queen, a real function. Let's get into it π
β¨ NAME β¨
hwspin_unlock_in_atomic β unlock hwspinlock π
Like, that's literally the whole vibe. It unlocks a hwspinlock. No cap.
πΈ SYNOPSIS πΈ
void hwspin_unlock_in_atomic (struct hwspinlock *hwlock );
So it returns void (nothing back, she gives and gives π) and takes exactly one thing: a pointer to a struct hwspinlock called hwlock. That's it. That's the whole signature. Slay.
π¦ ARGUMENTS π¦
hwlockβ a previously-acquired hwspinlock which we want to unlock π ngl this is the lock you already grabbed earlier and now you're like "ok bestie, you can go now."
π DESCRIPTION π
This function will unlock a specific hwspinlock. Simple as that, periodt. One lock in, one lock freed, no drama.
β οΈ But listen βhwlockmust be already locked (e.g. byhwspin_trylock) before calling this function. It is a bug to call unlock on a hwlock that is already unlocked. Like, genuinely undefined-behavior-coded. Do not do this. I'm serious. ππ
π₯ SEE ALSO π₯
Kernel file ./include/linux/hwspinlock.h β go read her, she's iconic π«Ά
hwspin_trylock_irqsave(9)hwspin_trylock_irq(9)hwspin_trylock_raw(9)hwspin_trylock_in_atomic(9)hwspin_trylock(9)hwspin_lock_timeout_irqsave(9)hwspin_lock_timeout_irq(9)hwspin_lock_timeout_raw(9)hwspin_lock_timeout_in_atomic(9)hwspin_lock_timeout(9)hwspin_unlock_irqrestore(9)hwspin_unlock_irq(9)hwspin_unlock_raw(9)hwspin_unlock(9)
The whole friend group fr fr π
okay that's the page!! π This lil gem lives in ./include/linux and the version/date stamp on it is October 2026 β so yeah, she's from the future, main character energy only πβ¨π
mwah, go unlock responsibly bestie ππ¦π
π¦ 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