queued_spin_is_locked(9)
π queued_spin_is_locked(9) π
okay bestie, welcome to the Kernel API Manual, this one's short and sweet and honestly kind of iconic for it. no cap.
β¨ NAME β¨
queued_spin_is_locked β literally just asking: is the spinlock locked? that's the whole vibe check π
πΈ SYNOPSIS πΈ
int queued_spin_is_locked (struct qspinlock *lock );
that's it. that's the function. she's little but she knows things π
π¦ ARGUMENTS π¦
lockβ Pointer to queued spinlock structure. hand her the pointer, she'll tell you what's up π«Ά
β RETURN β
1 if it is locked, 0 otherwise. binary queen behavior, she has exactly two moods π
π SEE ALSO π
- Kernel file
./include/asm-generic/qspinlock.hβ the source of truth, go read the actual header bestie, it's giving primary source energy π queued_spin_value_unlocked(9)queued_spin_is_contended(9)queued_spin_trylock(9)queued_spin_lock(9)queued_spin_release(9)queued_spin_unlock(9)
the whole spinlock friend group, all iconic, all linked π₯
fr fr though, if you're poking at spinlocks in the kernel, read these together β iykyk π
and that's the page, bestie!! brought to you by ./include/asm-generic, dated October 2026, and of course the one and only queued_spin_is_locked(9) πβ¨π§
π¦ 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