futex_wait_bitset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ futex_wait_bitset(9) ✨

okay so bestie, quick vibe check: this is a page from the Kernel API Manual, and it's about futex_wait_bitset β€” the futex wait that's picky about which bits it wakes up for. no cap, it's giving "i'll block, but only for the specific bits i care about" πŸ’…


🌸 NAME 🌸

futex_wait_bitset β€” block on uaddr with bitset

like literally that's the whole name section, she's concise, she's iconic, we love her πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int futex_wait_bitset (futex_t *uaddr , futex_t val , struct timespec
*timeout , u_int32_t bitset , int opflags );

(yeah the wrap happened mid-declaration up there, that's just how the original rolled, and we're keeping it EXACTLY as-is, fr fr 🫢)


πŸ’œ ARGUMENTS πŸ’œ

okay so this is the part where the manpage kind of left us on read 😭 β€” most of these are literally marked -- undescribed -- in the source. i'm not gonna invent lore that isn't there, so here's the honest rundown:

  • uaddr β€” -- undescribed -- πŸ™ˆ (the address you're futex-ing on, obviously, but the page itself says nothing, so neither do i)
  • val β€” -- undescribed -- πŸ’€
  • timeout β€” -- undescribed -- βŒ› (it's a struct timespec *, do with that what you will)
  • bitset β€” bitset to be used with futex_wake_bitset ⭐ β€” this is the one argument the page actually bothers to describe, and it's the whole point of the function, so like... main character energy honestly πŸ‘‘
  • opflags β€” -- undescribed -- 🫠
bestie, real talk: if you need the real semantics of uaddr, val, timeout and opflags, the manpage is not gonna hand them to you. check the kernel source and the selftest header below. i'm not out here guessing at kernel behaviour, that's not the move πŸ’…

🌈 SEE ALSO 🌈

like, that's the whole futex friend group right there and they all showed up to the party πŸ”₯


that's the page, bestie! mwah πŸ’‹

source/version: ./tools/testing/selftests/fute... β€” yeah it's truncated in the footer, that's canon, we don't fix it πŸŽ€

dated October 2026 β€” future girl summer ✨ see u in the next section, ily, bye! πŸŒΈπŸ¦‹πŸ’–

πŸ“¦ where this page comes from