raw_atomic_long_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, this is raw_atomic_long_add β€” the atomic add with relaxed ordering page from the Kernel API Manual, and it’s giving β€œone tiny atomic job, done beautifully.” πŸ’…


✨ SYNOPSIS ✨

the signature, exactly as written, no editing the fit:

void raw_atomic_long_add (long i , atomic_long_t *v );

πŸŽ€ ARGUMENTS πŸŽ€

  • i β€” a long value to add. That’s the amount going into the mix. πŸ’–
  • v β€” pointer to an atomic_long_t. This is the thing getting updated, main character energy. πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

It atomically updates v to (v + i) with relaxed ordering. Periodt β€” atomic update, relaxed ordering, exactly that.

No cap, it’s safe to use in noinstr code; the manpage says prefer atomic_long_add elsewhere. So this one is your noinstr-safe bestie, and atomic_long_add is the usual go-to for the rest. 🫢

⭐ RETURN ⭐

Nothing. Literally no return value to catch, just the update and bye. 😭

πŸ”₯ SEE ALSO πŸ”₯

the whole extended universe, bestie:


this page’s source/version is ./include/linux/atomic, dated October 2026 β€” mwah, slay, bye πŸ’‹βœ¨

πŸ“¦ where this page comes from