atomic_long_...h_or_relaxed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ atomic_long_fetch_or_relaxed β€” atomic bitwise OR, but make it relaxed πŸ’…

okay so real talk, this is a (9) Kernel API Manual page, and the star of the show is atomic_long_fetch_or_relaxed. She does one thing and she does it gorgeously, no cap. 🌸


✨ NAME ✨

atomic_long_fetch_or_relaxed β€” atomic bitwise OR with relaxed ordering πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

long atomic_long_fetch_or_relaxed (long i , atomic_long_t *v );

πŸ’– ARGUMENTS πŸ’–

  • i β€” a long value. just a whole long, living her life 🫢
  • v β€” pointer to atomic_long_t. this is the girl we're actually updating ✨

🌈 DESCRIPTION 🌈

Atomically updates v to (v | i) with relaxed ordering. literally the OR happens, the write happens, and nobody can catch her mid-yawn β€” it's all one atomic moment, bestie. πŸ”₯

⚠️ Unsafe to use in noinstr code; use raw_atomic_long_fetch_or_relaxed there instead. i'm serious, do not bring this one into noinstr territory, she does not belong there πŸ™ˆ

πŸ‘‘ RETURN πŸ‘‘

The original value of v. like, the value she had before the glow-up β€” you get the before picture, not the after πŸ’…


🧚 SEE ALSO 🧚

Kernel file ./include/linux/atomic/atomic-instrumented.h

πŸ’œ the atomic_t girlies

πŸ¦‹ the atomic64_t icons

🌟 the atomic_long_t main characters (yes, our girl's whole family)


🫢 that's the whole guest list, everybody showed up, the group chat is poppin' πŸ’€βœ¨

and that's a wrap, bestie! this page lives in ./include/linux/atomic and it's dated October 2026, and it's filed under the atomic_long_...h_or_relaxed(9) name β€” mwah, slay, periodt πŸ’…πŸŽ€πŸŒŸ

πŸ“¦ where this page comes from