raw_atomic_fetch_or(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… raw_atomic_fetch_or(9)

okay bestie, welcome to the Kernel API Manual page for the atomic bitwise-OR moment πŸ’– no cap, this one is lowkey iconic.


🌸 NAME 🌸

raw_atomic_fetch_or β€” atomic bitwise OR with full ordering


✨ SYNOPSIS ✨

int raw_atomic_fetch_or (int i , atomic_t *v );

πŸŽ€ ARGUMENTS πŸŽ€

  • i β€” an int value. it's the bits you're bringing to the party ✨
  • v β€” pointer to atomic_t. the atomic queen getting updated 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

so the vibe is: this atomically updates v to (v | i) with full ordering. like, bitwise OR, atomic, full ordering, the whole thing πŸ’…

it's safe to use in noinstr code β€” but bestie, prefer atomic_fetch_or elsewhere, fr fr.

okay important little note: noinstr is the safe zone for this one; outside that, atomic_fetch_or is the preferred girlie πŸ’–

🌟 RETURN 🌟

returns the original value of v β€” the pre-update one, iykyk 😌


πŸ’– SEE ALSO πŸ’–

the whole atomic cinematic universe pulled up 🌈 kernel file first, then the raw_atomic_* fam, then the raw_atomic64_* fam:


okay that's the whole page bestie 🫢 footer vibes: source/version ./include/linux/atomic, date October 2026, title raw_atomic_fetch_or(9). byeee πŸ’œ

πŸ“¦ where this page comes from