queued_spin_value_unlocked(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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