atomic64_ad...tive_relaxed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 atomic64_ad...tive_relaxed(9) β€” Kernel API Manual 🌸

πŸ’– NAME πŸ’–

atomic64_add_negative_relaxed β€” atomic add and test if negative with relaxed ordering. That's the whole assignment, bestie: add, then vibe-check the sign, with relaxed ordering. ✨

✨ SYNOPSIS ✨

bool atomic64_add_negative_relaxed (s64 i , atomic64_t *v );

πŸŽ€ ARGUMENTS πŸŽ€

  • i β€” s64 value to add. The number you're bringing to the function.
  • v β€” pointer to atomic64_t. The atomic64_t that's getting updated, main character energy.

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so literally, this atomically updates v to (v + i) with relaxed ordering. No cap, that's the move. 🫢

⚠️ Unsafe to use in noinstr code β€” use raw_atomic64_add_negative_relaxed there instead. Do not ignore this, bestie; it's giving "wrong context" energy and the kernel will not be slay about it. πŸ’€

⭐ RETURN ⭐

true if the resulting value of v is negative, false otherwise. That's it. That's the tea. πŸ’…

πŸ’… SEE ALSO πŸ’…

All from the Kernel file ./include/linux/atomic/atomic-instrumented.h β€” here's the whole squad, bestie, every single reference so you can go read them and be obsessed:


okay bestie, that's the page πŸ’– source/version: ./include/linux/atomic Β· date: October 2026 Β· title: atomic64_ad...tive_relaxed(9) β€” now go be iconic with your atomics, mwah πŸ«ΆπŸ’…

πŸ“¦ where this page comes from