futex_wait_bitset(9)
β¨ 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 astruct timespec *, do with that what you will)bitsetβ bitset to be used withfutex_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 ofuaddr,val,timeoutandopflags, 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 π
- Kernel file
./tools/testing/selftests/futex/include/futextest.hπ β yes, that's the actual path, go look, iykyk futex(9)futex_wait(9)futex_wake(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_cmp_requeue_pi(9)futex_cmpxchg(9)futex_dec(9)futex_inc(9)futex_set(9)
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
- 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