atomic_long..._add_release(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… atomic_long_fetch_add_release(9) πŸ’…

okay so welcome to the Kernel API Manual, bestie ✨ this page is atomic_long_fetch_add_release(9), and the header tag is atomic_long..._add_release(9) β€” iykyk πŸŽ€


πŸ’– NAME πŸ’–

atomic_long_fetch_add_release β€” atomic add with release ordering


✨ SYNOPSIS ✨

long atomic_long_fetch_add_release (long i , atomic_long_t *v );

🫢 ARGUMENTS 🫢

  • i β€” a long value to add πŸ‘‘
  • v β€” pointer to atomic_long_t πŸ¦‹

🌸 DESCRIPTION 🌸

okay so here's the tea: it atomically updates v to (v + i) with release ordering. that's the whole main-character move πŸ’«

safety check, fr fr: it is unsafe to use in noinstr code β€” use raw_atomic_long_fetch_add_release there instead. no cap, do not ignore this one πŸ™ˆ

πŸŽ€ RETURN πŸŽ€

it gives you back the original value of v β€” periodt πŸ’…


πŸ¦‹ SEE ALSO πŸ¦‹

bestie, this SEE ALSO section is a whole family reunion and every single one is invited β€” no skipping the guest list πŸ’–

Kernel file: ./include/linux/atomic/atomic-instrumented.h


okay that's the page bestie! cute lil sign-off: this one lives under ./include/linux/atomic, it's the October 2026 version, and the page tag is atomic_long..._add_release(9) β€” mwah πŸ’‹πŸŒˆ

πŸ“¦ where this page comes from