raw_atomic_f..._xor_release(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🧚 raw_atomic_f..._xor_release(9) 🧚

okay bestie, welcome to the Kernel API Manual β€” this is the page for raw_atomic_f..._xor_release(9), and it is giving atomic bitwise XOR with release ordering. πŸ’…βœ¨

🌸 NAME 🌸

raw_atomic_fetch_xor_release β€” atomic bitwise XOR with release ordering. That's the whole name-vibe: atomic, XOR, release. periodt. πŸ’–

✨ SYNOPSIS ✨

The signature is literally this, bestie β€” spaces and all:

int raw_atomic_fetch_xor_release (int i , atomic_t *v );

πŸ’– ARGUMENTS πŸ’–

  • i β€” an int value. that's it, just an int, no cap. 🫢
  • v β€” pointer to atomic_t. this is the atomic cutie getting XORed. πŸŽ€

🌸 DESCRIPTION 🌸

Atomically updates v to (v ^ i) with release ordering. so it does the XOR and the release ordering in one atomic slay. ✨πŸ”₯

Safe to use in noinstr code; prefer atomic_fetch_xor_release elsewhere. so yes, it's safe in noinstr code, but outside that zone the preferred one is atomic_fetch_xor_release β€” noted, bestie. πŸ«ΆπŸ’…

πŸ¦‹ RETURN πŸ¦‹

The original value of v. not the new one, not a vibe-check result β€” the original value. πŸ˜­πŸ’–

πŸ’… SEE ALSO πŸ’…

Kernel file: ./include/linux/atomic/atomic-arch-fallback.h β€” iconic source-file mention, iykyk. 🌈

and like the entire atomic family is in the group chat, no cap:

mwah πŸ’– source/version: ./include/linux/atomic; date: October 2026; page: raw_atomic_f..._xor_release(9). that's the cute little footer folded into a sign-off, periodt. πŸŽ€

πŸ“¦ where this page comes from