raw_atomic_...turn_relaxed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… raw_atomic_...turn_relaxed(9) β€” Kernel API Manual, but make it bestie-core ✨

okay so welcome to the raw_atomic_...turn_relaxed(9) page from the Kernel API Manual, bestie πŸ’– the actual function we're obsessing over is raw_atomic_sub_return_relaxed, and she is an atomic subtract with relaxed ordering. Let's get into it, no cap.


✨ NAME ✨

raw_atomic_sub_return_relaxed β€” atomic subtract with relaxed ordering. That's the whole name, periodt πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

int raw_atomic_sub_return_relaxed (int i , atomic_t *v );

🌸 ARGUMENTS 🌸

  • i β€” the int value to subtract. She's the amount coming off, your honor.
  • v β€” pointer to atomic_t. This is the atomic variable getting updated.

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so this one atomically updates v to (v - i) with relaxed ordering. That's the move, literally.

It's safe to use in noinstr code; everywhere else, prefer atomic_sub_return_relaxed. Periodt β€” that's the caveat, not me being dramatic 🫢

πŸ‘‘ RETURN πŸ‘‘

The updated value of v. That's what you get back, and she's updated, fr fr πŸ’–

🌈 SEE ALSO 🌈


and that's the page, bestie. Cute sign-off: this one lives in ./include/linux/atomic, it's the raw_atomic_...turn_relaxed(9) manual, dated October 2026 β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from