raw_atomic6...turn_acquire(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– raw_atomic64_add_return_acquire(9) πŸ’–

okay bestie, this one’s straight from the Kernel API Manual, and it’s lowkey iconic in the kernel-atomics department. πŸ’…

✨ NAME ✨

raw_atomic64_add_return_acquire β€” atomic add with acquire ordering. No cap. πŸ¦‹

πŸŒ€ SYNOPSIS πŸŒ€

s64 raw_atomic64_add_return_acquire (s64 i , atomic64_t *v );

πŸŽ€ ARGUMENTS πŸŽ€

  • i β€” the s64 value to add. πŸ’–
  • v β€” pointer to an atomic64_t. 🫢

🌸 DESCRIPTION 🌸

It atomically updates v to (v + i) with acquire ordering. Like, genuinely atomic, bestie β€” the (v + i) part is not out here doing a little race-condition side quest. ✨

It’s safe to use in noinstr code. Everywhere else, prefer atomic64_add_return_acquire β€” that’s the main-character choice, periodt. πŸ‘‘

⭐ RETURN ⭐

The updated value of v. πŸ’«

πŸ‘€ SEE ALSO πŸ‘€


mwah πŸ’‹ this cutie came from ./include/linux/atomic, dated October 2026. 🫢

πŸ“¦ where this page comes from