futex_inc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ‘‘

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