futex_lock_pi(9)
π futex_lock_pi π
okay so bestie, welcome to the Kernel API Manual β¨ this one's a little baby page β futex_lock_pi is basically "block on uaddr as a PI mutex", and that's the whole vibe. PI = priority inheritance, iykyk π
she's short, she's sweet, she's iconic.
β¨ NAME β¨
futex_lock_pi β block on uaddr as a PI mutex π«Ά
πΈ SYNOPSIS πΈ
int futex_lock_pi (futex_t *uaddr , struct timespec *timeout , int
detect , int opflags );
π ARGUMENTS π
uaddrβ literally<hotpink>-- undescribed --</hotpink>π the manpage really said "no thoughts, head empty" on this one. It's the futex word pointer, but the source doc gives us nothing more, so we're not gonna make stuff up, periodt.timeoutβ also<hotpink>-- undescribed --</hotpink>π same situation bestie, the page just left it blank.struct timespec *in the signature, docs say nada.detectβ whether (1) or not (0) to perform deadlock detection π₯ so like,1= yes bestie we're checking for deadlocks,0= nope we're living dangerously (well, not dangerously β just not detecting, no cap).opflagsβ<hotpink>-- undescribed --</hotpink>π third one in a row. The docs ghosted us. It's anint, that's all we got.
fr fr: three of the four arguments are marked -- undescribed -- in the source. That's not me being lazy, that's the page. We keep it 100. π―
π¦ SEE ALSO π¦
- Kernel file
./tools/testing/selftests/futex/include/futextest.hπ (the selftests header, go look if you wanna see it in the wild) futex(9)futex_wait(9)futex_wake(9)futex_wait_bitset(9)futex_wake_bitset(9)futex_unlock_pi(9)π (the other half of this one, obviously)futex_wake_op(9)futex_requeue(9)futex_cmp_requeue(9)futex_wait_requeue_pi(9)futex_cmp_requeue_pi(9)futex_cmpxchg(9)futex_dec(9)futex_inc(9)futex_set(9)
like, the whole futex friend group π go say hi to all of them.
and that's the page!! short and slay π this cutie pie came out of ./tools/testing/selftests/fute... (yes it's truncated in the source, don't come for me π) and it's dated October 2026 β mwah, bye bestie π«Άπ
π¦ 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