queued_spin_value_unlocked(9)
π NAME π
okay bestie, welcome to the Kernel API Manual entry for queued_spin_value_unlocked(9) β the page that answers: is the spinlock structure unlocked? β¨
πΈ SYNOPSIS πΈ
int queued_spin_value_unlocked (struct qspinlock lock );
π ARGUMENTS π
lockβ queued spinlock structure π«Ά
π RETURN π
1 if it is unlocked, 0 otherwise. periodt. β¨
π¦ DESCRIPTION π¦
N.B. β whenever there are tasks waiting for the lock, it is considered locked wrt the lockref code, so the lockref code doesnβt steal the lock and change things underneath the lock. This also allows some optimizations to be applied without conflict with lockref. iykyk π
π SEE ALSO π
Kernel file ./include/asm-generic/qspinlock.h β also go peek at queued_spin_is_locked(9), queued_spin_is_contended(9), queued_spin_trylock(9), queued_spin_lock(9), queued_spin_release(9), and queued_spin_unlock(9). π
byeee π«Ά β source/version ./include/asm-generic, dated October 2026, all about queued_spin_value_unlocked(9). 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