futex_cmp_requeue_pi(9)
π¦ futex_cmp_requeue_pi(9) π¦
okay bestie, so this is a page straight out of the Kernel API Manual, and it's literally called futex_cmp_requeue_pi β yes that's a whole mouthful, yes we're gonna get through it together π
β¨ NAME β¨
futex_cmp_requeue_pi β requeue tasks from uaddr to uaddr2 (PI aware)
like... it moves tasks from one futex to another and it knows about priority inheritance. main character behaviour tbh π
πΈ SYNOPSIS πΈ
int futex_cmp_requeue_pi (futex_t *uaddr , futex_t val , futex_t *uaddr2
, int nr_wake , int nr_requeue , int opflags );
look at her. six whole arguments. she's doing the most and honestly? she's slaying π
π ARGUMENTS π
uaddrβ the non-PI futex source, aka where everybody's currently vibing π«Άvalβ hmm. the manual literally just says-- undescribed --so bestie... nobody wrote anything π ngl we're all just out here not knowing. fr fr that's the whole description.uaddr2β the PI futex target, aka the destination. the glow-up location β¨nr_wakeβ wake up to this many tasks. that's the cap, no cap πnr_requeueβ requeue up to this many tasks. again, a limit, not a suggestion πΈopflagsβ another-- undescribed --π« like the manual simply did not elaborate. iconic of it, honestly.
lowkey two of these arguments have zero documentation and I'm just the messenger π I'm not gonna invent lore for them. we report what the page says and we move on.
π SEE ALSO π
- Kernel file
./tools/testing/selftests/futex/include/futextest.hβ the actual source-adjacent situation, go look π§ futex(9)futex_wait(9)futex_wake(9)futex_wait_bitset(9)futex_wake_bitset(9)futex_lock_pi(9)futex_unlock_pi(9)futex_wake_op(9)futex_requeue(9)futex_cmp_requeue(9)futex_wait_requeue_pi(9)futex_cmpxchg(9)futex_dec(9)futex_inc(9)futex_set(9)
that's fifteen friends and one file path, and every single one of them ate π₯ go read them all, iykyk π
okay that's the whole page, bestie π this little cutie comes from ./tools/testing/selftests/fute... and the date on her is October 2026 β so yes, she's from the future, and she's still futex_cmp_requeue_pi(9) π periodt.
π¦ 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