queued_spin_is_locked(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

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