raw_atomic64_fetch_or(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… raw_atomic64_fetch_or(9) β€” Kernel API Manual πŸ’…

✨ NAME ✨

okay bestie, meet raw_atomic64_fetch_or: atomic bitwise OR with full ordering. that's the whole vibe. πŸ’–

🌸 SYNOPSIS 🌸

s64 raw_atomic64_fetch_or (s64 i , atomic64_t *v );

πŸŽ€ ARGUMENTS πŸŽ€

  • i β€” an s64 value. yes, exactly that. 🫢
  • v β€” pointer to atomic64_t. a whole pointer, periodt. ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

Atomically updates v to (v | i) with full ordering. the way that | is doing bitwise OR and the whole thing is atomic? iconic. πŸ”₯

Safe to use in noinstr code; prefer atomic64_fetch_or elsewhere. that's literally what the page says, so keep that in mind, bestie. πŸ’…

no cap: noinstr is safe here, but elsewhere the manual is like β€œprefer atomic64_fetch_or,” okay? 🌈

πŸ”₯ RETURN πŸ”₯

The original value of v. not the new value β€” the O.G. value. she gives you the before pic, not the after. πŸ˜­πŸ“Έ

πŸ‘‘ SEE ALSO πŸ‘‘

the extended fam is HUGE and the source file is right here:

okay that's the whole page!! 🫢 source/version line: ./include/linux/atomic Β· date: October 2026 Β· page: raw_atomic64_fetch_or(9) β€” mwah, bye bestie πŸ’‹βœ¨

πŸ“¦ where this page comes from