raw_atomic_long_fetch_dec(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME

okay bestie, welcome to the Kernel API Manual page for raw_atomic_long_fetch_dec(9) πŸ’…

raw_atomic_long_fetch_dec β€” atomic decrement with full ordering


✨ SYNOPSIS

long raw_atomic_long_fetch_dec (atomic_long_t *v );

πŸŽ€ ARGUMENTS

  • v β€” pointer to atomic_long_t

πŸ’– DESCRIPTION

So here's the tea: it atomically updates v to (v - 1) with full ordering. no cap. 🫢

This one is safe to use in noinstr code; everywhere else, the move is to prefer atomic_long_fetch_dec, bestie. ✨

πŸ”₯ RETURN

You get the original value of v handed back to you β€” iconic behavior, honestly. πŸ‘‘

🌈 SEE ALSO

πŸ’– cute sign-off: source/version ./include/linux/atomic, date October 2026, page raw_atomic_long_fetch_dec(9). byeee bestie 🫢✨

πŸ“¦ where this page comes from