raw_atomic_l...turn_release(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ raw_atomic_l...turn_release(9) ✨

okay so bestie, we're deep in the Kernel API Manual and today's main character is a tiny atomic function with serious release-ordering energy πŸ’… don't let the truncated title scare you β€” she's iconic, she's specific, and she's literally right here.


πŸ’– NAME πŸ’–

raw_atomic_long_add_return_release β€” atomic add with release ordering πŸŽ€


🌸 SYNOPSIS 🌸

long raw_atomic_long_add_return_release (long i , atomic_long_t *v );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • i β€” the long value you're adding, bestie. that's the whole assignment πŸ’–
  • v β€” a pointer to atomic_long_t, aka the thing getting updated ✨

πŸ”₯ DESCRIPTION πŸ”₯

So the vibe is: this atomically updates v to (v + i) with release ordering. no cap, that's the entire glow-up πŸ’«

She is safe to use in noinstr code β€” yes, that noinstr β€” but outside of that, prefer atomic_long_add_return_release instead. like, she's the raw special-case queen, not the everyday default πŸ‘‘


πŸ‘‘ RETURN πŸ‘‘

You get back the updated value of v. that's it, that's the tea πŸ“


πŸ‘€ SEE ALSO πŸ‘€

mwah πŸ’‹ that's the whole vibe. source/version: ./include/linux/atomic Β· date: October 2026 ✨
πŸ“¦ where this page comes from