raw_atomic_..._sub_acquire(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… raw_atomic_..._sub_acquire(9) β€” Kernel API Manual πŸ’…

okay bestie, welcome to the Kernel API Manual page for raw_atomic_..._sub_acquire(9) πŸ¦‹ this one is short, iconic, and very atomic-coded ✨


🌸 NAME 🌸

raw_atomic_long_fetch_sub_acquire β€” atomic subtract with acquire ordering πŸ’₯


✨ SYNOPSIS ✨

long raw_atomic_long_fetch_sub_acquire (long i , atomic_long_t *v );

πŸŽ€ ARGUMENTS πŸŽ€

  • i β€” a long value to subtract πŸ’…
  • v β€” pointer to atomic_long_t πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

Atomically updates v to (v - i) with acquire ordering ⭐ like yes, that is literally the whole vibe.

It is safe to use in noinstr code; prefer atomic_long_fetch_sub_acquire elsewhere 🫢 no cap, that distinction matters.


πŸ’– RETURN πŸ’–

The original value of v 🌸 aka the value from before the subtract happened, periodt.


🌈 SEE ALSO 🌈


okay bye bestie 😭 this page came from the ./include/linux/atomic source and is dated October 2026 ✨ raw_atomic_..._sub_acquire(9) forever, mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from