futex_inc(9)
π futex_inc β like, the Kernel API Manual page, bestie β¨
okay so real talk, this is futex_inc(9) from the Kernel API Manual, and it's honestly the shortest little icon in the whole futex family. You want the value to go up by one? Boom. That's the whole vibe. Let's get into it π
πΈ NAME πΈ
futex_inc β atomic increment of the futex value
Like, it bumps the futex value. Atomically. No one else can sneak in there mid-bump. Periodt. π
β¨ SYNOPSIS β¨
u_int32_t futex_inc (futex_t *uaddr );
That's it. That's the whole function signature. Look at her. So clean. So unbothered. π
π¦ ARGUMENTS π¦
uaddrβ the address of the futex to be modified. Yeah, you gotta hand her the actual address of the thing you want bumped, not a copy, not a vibe, the address. π«Ά
π DESCRIPTION π
Return the new futex value.
that's literally the entire description, bestie β she does the increment, and she hands you back the brand-new value like a little gift. No cap, that's it. π
π₯ SEE ALSO π₯
The squad, in full, no one left out π
- Kernel file
./tools/testing/selftests/futex/include/futextest.h futex(9)futex_wait(9)futex_wake(9)futex_wait_bitset(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_set(9)
like, she's got the whole friend group: wait, wake, bitset versions of both, the PI lock/unlock girlies, wake_op, requeue, cmp_requeue, wait_requeue_pi, cmp_requeue_pi, cmpxchg, and her two direct siblings futex_dec(9) (the downer) and futex_set(9) (the setter). iykyk π
okay but fr fr, if ya wanna see her in action, mosey on over to ./tools/testing/selftests/futex/include/futextest.h β that's where the selftests live, bestie π§
and that's a wrap, babe π this lil page came from that source/version line that reads ./tools/testing/selftests/fute... and it's dated October 2026, and yes the footer still says futex_inc(9) because we would never do her like that. slay, 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