raw_atomic6...h_or_relaxed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

raw_atomic64_fetch_or_relaxed β€” atomic bitwise OR with relaxed ordering. Periodt. This is the raw_atomic6...h_or_relaxed(9) page from the Kernel API Manual, and yes the title is a little cursed, but the function itself is iconic. πŸ’…

✨ SYNOPSIS ✨

Okay bestie, the call is literally this:

s64 raw_atomic64_fetch_or_relaxed (s64 i , atomic64_t *v );

🫢 ARGUMENTS 🫢

  • i β€” an s64 value. This is the value you're OR-ing in. 🌸
  • v β€” pointer to atomic64_t. This is the atomic thing getting updated. πŸ¦‹

πŸ’– DESCRIPTION πŸ’–

Okay so here's the tea: it atomically updates v to (v | i) with relaxed ordering. That's the whole mood. ✨

Real talk, bestie: it's safe to use in noinstr code; prefer atomic64_fetch_or_relaxed elsewhere. Keep that in mind and you're golden. 🫢

πŸ”₯ RETURN πŸ”₯

The original value of v. Not the new value β€” the original one. She's giving "before pic" energy. 😭

πŸ‘€ SEE ALSO πŸ‘€

Kernel file: ./include/linux/atomic/atomic-arch-fallback.h

The whole friend group, in original order:


Okay bye bestie! This little masterpiece lives under source/version ./include/linux/atomic, dated October 2026. Stay atomic, stay relaxed, and don't forget to hydrate. πŸ’–βœ¨

πŸ“¦ where this page comes from