raw_atomic_long_or(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay so this is the raw_atomic_long_or(9) page from the Kernel API Manual β€” it’s the atomic bitwise OR with relaxed ordering, and it’s here to update your long without the extra ordering drama. slay.


✨ SYNOPSIS ✨

void raw_atomic_long_or (long i , atomic_long_t *v );

πŸŽ€ ARGUMENTS πŸŽ€

  • i β€” a long value. that’s the value getting OR’d in, bestie.
  • v β€” pointer to atomic_long_t. this is the atomic long that gets updated.

πŸ¦‹ DESCRIPTION πŸ¦‹

Atomically updates v to (v | i) with relaxed ordering. literally the whole plot.

It’s safe to use in noinstr code; the page says to prefer atomic_long_or elsewhere. so like, if you’re not in noinstr land, use the other one β€” not a suggestion to ignore, fr fr.


⭐ RETURN ⭐

Nothing. void. no return value, no little treat, no crumbs. πŸ’€


🌈 SEE ALSO 🌈

Kernel file to peek at: ./include/linux/atomic/atomic-long.h

and the whole atomic-long friend group, in original order:


mwah πŸ’‹ β€” source/version: ./include/linux/atomic; date: October 2026. 🫢

πŸ“¦ where this page comes from