raw_atomic6...turn_release(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

raw_atomic64_inc_return_release β€” atomic increment with release ordering ✨

(okay so real talk, this is a page straight out of the Kernel API Manual, and the header up top gets all truncate-y and shows it as raw_atomic6...turn_release(9) β€” the manual name is raw_atomic6...turn_release(9) too, don't @ me, that's just how it renders πŸ’…)


✨ SYNOPSIS ✨

s64 raw_atomic64_inc_return_release (atomic64_t *v );

πŸŽ€ ARGUMENTS πŸŽ€

  • v β€” pointer to atomic64_t 🫢 that's it. that's the whole argument list. we love a low-maintenance icon.

πŸ’– DESCRIPTION πŸ’–

Atomically updates v to (v + 1) with release ordering. πŸ”₯

It's safe to use in noinstr code β€” that's literally its whole personality. Everywhere else, though? prefer atomic64_inc_return_release instead. no cap, that's the guidance. πŸ™ˆ


πŸ¦‹ RETURN πŸ¦‹

The updated value of v. ✨ (so like, the value after the increment, not before β€” don't get it twisted πŸ‘‘)


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./include/linux/atomic/atomic-arch-fallback.h β€” go read it, it's giving source-of-truth energy πŸ“–


okay that's the whole crew, literally all of them, no gatekeeping πŸ’œ and that's the page!! tysm for reading, go increment something atomically and be iconic about it 🧚✨

little sign-off from the source: this beauty lives at ./include/linux/atomic and it's dated October 2026 β€” remember the era, bestie πŸŽ€πŸŒˆ
πŸ“¦ where this page comes from