raw_atomic_long_dec_return(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

Okay bestie, meet raw_atomic_long_dec_return from the Kernel API Manual 🌸 β€” the atomic decrement with full ordering that hands you back the updated value. Lowkey iconic. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

long raw_atomic_long_dec_return (atomic_long_t *v );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • v β€” pointer to atomic_long_t 🫢

πŸ’– DESCRIPTION πŸ’–

Atomically updates v to (v - 1) with full ordering. ✨

Safe to use in noinstr code; prefer atomic_long_dec_return elsewhere, bestie. 🌈


πŸ‘‘ RETURN πŸ‘‘

The updated value of v β€” yes, it gives you the new number back, periodt. πŸ’…


🌟 SEE ALSO 🌟

Kernel file: ./include/linux/atomic/atomic-long.h πŸ¦‹

The whole atomic-long family is here, iykyk: πŸ’–


That's the vibe check, bestie 🫢 Source/version: ./include/linux/atomic · Date: October 2026 · Page: raw_atomic_long_dec_return(9) ✨
πŸ“¦ where this page comes from