futex_lock_pi(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 an int, 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 πŸ¦‹

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