hwspin_unlock_raw(9)
π hwspin_unlock_raw β the Kernel API Manual, bestie edition π
okay so this is the manpage for hwspin_unlock_raw from the Kernel API Manual, and honestly? it's giving "short but iconic." let's get into it π
β¨ NAME β¨
hwspin_unlock_raw β unlock hwspinlock πβ¨
like, that's the whole job. she unlocks. she's done. periodt.
πΈ SYNOPSIS πΈ
void hwspin_unlock_raw (struct hwspinlock *hwlock );
no cap, that's the entire call. you hand her the lock, she lets it go π«Ά
π¦ ARGUMENTS π¦
hwlockβ a previously-acquired hwspinlock which we want to unlock. lowkey the main character of this whole situation π you literally cannot do this without her.
β DESCRIPTION β
okay so real talk: this function will unlock a specific hwspinlock. that's it, that's the vibe check, she ate π₯
but here's the part where you gotta listen, bestie, because this is the important bit π β hwlock must be already locked (e.g. by hwspin_trylock) before calling this function. and I mean it fr fr: it is a bug to call unlock on a hwlock that is already unlocked ππ
β οΈ so don't be out here unlocking things that aren't locked. that's not a vibe. that's a bug. no cap.
π§ SEE ALSO π§
Kernel file ./include/linux/hwspinlock.h β and the whole friend group, because locking is a group project apparently π:
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_in_atomic(9)hwspin_unlock(9)
likeβ¦ so many lock girlies. collect them all π
and that's the whole page, bestie π this cutie lives in ./include/linux and this version is dated October 2026 in the Kernel API Manual β mwah, bye ππ¦πΈ
π¦ 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