futex_top_waiter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ futex_top_waiter(9) ✨

bestie, welcome to the Kernel API Manual page for futex_top_waiter(9) β€” yes, the Kernel API Manual, we're doing kernel-core realness today 🫢


πŸ’… NAME πŸ’…

futex_top_waiter β€” Return the highest priority waiter on a futex πŸ‘‘

🌸 SYNOPSIS 🌸

struct futex_q * futex_top_waiter (struct futex_hash_bucket *hb , union
futex_key *key );

πŸŽ€ ARGUMENTS πŸŽ€

  • hb β€” the hash bucket the futex_q's reside in.
  • key β€” the futex key (to distinguish it from other futex futex_q's).

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the one big rule, and I mean it, no cap: this must be called with the hb lock held. Not optional, not "maybe later", not "I'll hold it in spirit" β€” hold the lock, bestie. Periodt πŸ”’βœ¨

🌈 SEE ALSO 🌈


okay that's the whole page, mwah πŸ’– β€” source/version is ./kernel/futex, stamped October 2026, and it's giving kernel manual realness πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from