raw_atomic64_fetch_dec(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… raw_atomic64_fetch_dec(9) πŸ’…

okay so welcome to the Kernel API Manual page for raw_atomic64_fetch_dec, bestie β€” this is the one that does an atomic decrement with full ordering, and it's literally giving "small but mighty" energy ✨


🌸 NAME 🌸

raw_atomic64_fetch_dec β€” atomic decrement with full ordering


✨ SYNOPSIS ✨

s64 raw_atomic64_fetch_dec (atomic64_t *v );

πŸŽ€ ARGUMENTS πŸŽ€

  • v β€” pointer to atomic64_t 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this atomically updates v to (v - 1) with full ordering. no cap, that's the whole vibe.

it's safe to use in noinstr code; prefer atomic64_fetch_dec elsewhere. periodt πŸ’…


πŸ’– RETURN πŸ’–

the original value of v β€” yes bestie, you get the before pic, not the after πŸ˜­πŸ“Έ


🌈 SEE ALSO 🌈

look at this whole friend group of refs β€” every single one is here, no cap πŸ’–

πŸ’Œ cute sign-off: this page came from ./include/linux/atomic, October 2026. mwah πŸ’‹
πŸ“¦ where this page comes from