futex_top_waiter(9)
β¨ 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 thefutex_q's reside in.keyβ the futex key (to distinguish it from other futexfutex_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 π
- Kernel file
./kernel/futex/core.c __futex_hash(9)futex_setup_timer(9)get_futex_key(9)fault_in_user_writeable(9)wait_for_owner_exiting(9)__futex_unqueue(9)futex_unqueue(9)futex_exit_recursive(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms