STRUCT HWSPINLOCK(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

Okay bestie, straight from the Kernel API Manual: this is struct hwspinlock(9), and it is literally the struct that represents a single hwspinlock instance. No cap. πŸŽ€


πŸ’– SYNOPSIS πŸ’–

Here is the whole struct, exact and iconic:

       struct hwspinlock {
           struct hwspinlock_device *bank;
           spinlock_t lock;
           void *priv;
        };

🫢 Members 🫢

  • bank β€” the hwspinlock_device structure that owns this lock, like its official home base. 🏠
  • lock β€” initialized and used by the hwspinlock core itself. πŸ’…
  • priv β€” private data, owned by the underlying platform-specific hwspinlock drv. 🫢

πŸ¦‹ SEE ALSO πŸ¦‹

  • the kernel file ./drivers/hwspinlock/hwspinlock_internal.h πŸ“
  • struct hwspinlock_ops(9) ⭐
  • struct hwspinlock_device(9) πŸ‘‘

Okay that’s the whole vibe. This page’s source/version stamp is ./drivers/hwspinlock, and it’s dated October 2026 β€” so official, so cute, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from