__must_hold(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __must_hold(9) πŸ’…

okay so bestie, we're in the Kernel API Manual, and this page is all about a function attribute that does lock-vibe enforcement. It's short, it's specific, and it absolutely ate. ✨

✨ NAME ✨

__must_hold β€” function attribute, caller must hold exclusive context lock.

πŸŽ€ SYNOPSIS πŸŽ€

__must_hold (... );

🌸 ARGUMENTS 🌸

  • ... β€” variable arguments.

πŸ¦‹ DESCRIPTION πŸ¦‹

__must_hold is a function attribute. It declares that the caller must hold the given context lock instance(s) exclusively. Like, that's the whole assignment β€” the word β€œexclusively” is doing the heavy lifting here. No cap. πŸ’…

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file: ./include/linux/compiler-context-analysis.h


🫢 and that's the page, bestie. source/version: ./include/linux Β· date: October 2026 Β· page: __must_hold(9) β€” mwah πŸ’‹
πŸ“¦ where this page comes from