futex_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… futex_set(9) β€” your new fave kernel API page

okay so before we even start: this is from the Kernel API Manual, bestie. That's the vibe. Buckle up πŸŽ€


✨ NAME ✨

futex_set β€” atomic decrement of the futex value

not me noticing the NAME says "decrement" while the function is literally called set 😭 that's the page, that's what it says, we report, we don't editorialise. iykyk.

🌸 SYNOPSIS 🌸

u_int32_t futex_set (futex_t *uaddr , u_int32_t newval );

like… look at her. she's taking a futex_t * and a u_int32_t and handing you back a u_int32_t. main character energy honestly πŸ”₯


πŸ¦‹ ARGUMENTS πŸ¦‹

  • uaddr β€” the address of the futex to be modified. literally where the futex lives. point her in the right direction, bestie 🫢
  • newval β€” New value for the atomic_t. this is the glow-up value you're assigning, no cap ✨

πŸ‘‘ DESCRIPTION πŸ‘‘

Return the new futex value.

that's it. that's the whole description. short king behaviour πŸ’€ she said "my job here is done" and left the group chat. we respect it. πŸ™ˆ

🌈 SEE ALSO 🌈

the whole futex friend group, assembled πŸ§šβ€β™€οΈβœ¨ first the kernel file:

  • Kernel file ./tools/testing/selftests/futex/include/futextest.h

and then the ensemble cast, periodt:


πŸ’– sign-off πŸ’–

this iconic little page is sourced from ./tools/testing/selftests/fute... and it's dated October 2026, and the whole thing is filed under futex_set(9). slay, go read your futexes, ily πŸ“πŸ’œ

ok one last thing because i have to be that friend: everything above is exactly what the page says β€” i'm not adding behaviour, i'm not subtracting behaviour. copy the flags, keep the facts, and take care of your futexes fr fr πŸ’…
πŸ“¦ where this page comes from