raw_atomic_..._inc_release(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, this is the Kernel API Manual page for raw_atomic_..._inc_release(9) β€” yes, the title is dramatic with those ellipses, but the actual star is raw_atomic_long_fetch_inc_release, and she is giving atomic increment with release ordering ✨

✨ NAME ✨

  • raw_atomic_long_fetch_inc_release β€” atomic increment with release ordering πŸ’«

🌸 SYNOPSIS 🌸

the signature, literally:

long raw_atomic_long_fetch_inc_release (atomic_long_t *v );

πŸŽ€ ARGUMENTS πŸŽ€

  • v β€” pointer to atomic_long_t 🫢

πŸ’… DESCRIPTION πŸ’…

okay so what it does: it atomically updates v to (v + 1) with release ordering. the β€œatomically” is not decorative, bestie β€” it is the whole point πŸ”₯

it is safe to use in noinstr code; anywhere else, prefer atomic_long_fetch_inc_release β€” that is the β€œplease use this one in normal life” option πŸ’–

πŸ¦‹ RETURN πŸ¦‹

it returns the original value of v β€” the before picture, not the incremented after. so if you were expecting the new value, no bestie, that is not this function πŸ“Έ

🌈 SEE ALSO 🌈

the whole atomic-long friend group, plus the kernel file:

and that is the page, bestie 🫢 β€” source path ./include/linux/atomic, date October 2026, manual raw_atomic_..._inc_release(9); now go be atomic and release-ordered responsibly πŸ’…βœ¨

πŸ“¦ where this page comes from