futex_unlock_pi(9)
π futex_unlock_pi(9) β Kernel API Manual, section 9
okay so bestie, we're in the Kernel API Manual (section 9, kernel-space girlies only β¨) and today's main character is futex_unlock_pi.
β¨ NAME β¨
futex_unlock_pi β release uaddr as a PI mutex, waking the top waiter π
That's the whole job description and honestly? She ate. You hand her a uaddr, she drops it as a PI mutex, and the top waiter gets the wake-up. Periodt. πΈ
π SYNOPSIS π
int futex_unlock_pi (futex_t *uaddr , int opflags );
That's the exact signature, bestie β int coming back at you, futex_t *uaddr and int opflags going in. Don't @ me about the spacing, that's literally how it's written. π
π«Ά ARGUMENTS π«Ά
uaddrβ the manpage says-- undescribed --and likeβ¦ yeah. π That's the whole entry. No cap, the source doc just did not describe it. I'm not gonna invent lore for you, so: it's afutex_t *, it's theuaddr, and per the NAME section it's the thing you're releasing as a PI mutex. That's everything the page actually gives us!opflagsβ also-- undescribed --. π Anint, sitting there, un-described, iconic in a mysterious way. The docs don't say what goes in it, so I'm not gonna make something up. If you need the real tea, go bother the source (see SEE ALSO below, she's right there π).
listen β two whole -- undescribed -- entries is not me being lazy, that's genuinely what the page contains. I refuse to fabricate flag behavior for the group chat. π«Ά
π SEE ALSO π
The kernel file to go touch grass in:
./tools/testing/selftests/futex/include/futextest.h
And the whole futex friend group, in the exact order the page lists them π:
futex(9)futex_wait(9)futex_wake(9)futex_wait_bitset(9)futex_wake_bitset(9)futex_lock_pi(9)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)
notice how futex_lock_pi(9) is literally right there β she's the unlock's other half, the lock to your unlock, the main character to your love interest π¦
π the cute sign-off π
This page is from ./tools/testing/selftests/fute... (the source line got truncated by the terminal, not by me, blame the formatting bestie π) and it's dated October 2026, and it signs off as futex_unlock_pi(9).
so yeah β that's the whole page. go unlock that PI mutex, wake that top waiter, and slay ππ
π¦ 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