raw_atomic_..._dec_release(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay bestie, welcome to the raw_atomic_..._dec_release(9) page from the Kernel API Manual. This one is all about raw_atomic_long_fetch_dec_release β€” atomic decrement with release ordering. It’s giving β€œsubtract one, but make it atomic and ordered” energy. πŸ’…

✨ SYNOPSIS ✨

long raw_atomic_long_fetch_dec_release (atomic_long_t *v );

πŸŽ€ ARGUMENTS πŸŽ€

  • v β€” pointer to atomic_long_t. That’s the atomic long boi getting decremented, periodt.

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so this function atomically updates v to (v - 1) with release ordering. Literally β€œone less,” but atomic, and the release ordering is the whole vibe check. ✨

Safe to use in noinstr code; prefer atomic_long_fetch_dec_release elsewhere. So like, keep that in mind, bestie β€” no cap.

⭐ RETURN ⭐

The original value of v. Not the new value β€” the original one, before the decrement. Iconic. πŸ’–

πŸ‘‘ SEE ALSO πŸ‘‘

The whole extended fam, iykyk:


mwah πŸ’– that’s the page, bestie. Source/version: ./include/linux/atomic; date: October 2026. Bye 🫢

πŸ“¦ where this page comes from